Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-tron committed May 21, 2024
1 parent 7e0cd73 commit e813ec7
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion contract/jetton/jetton_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
func initDefaultWallet(blockchain *liteapi.Client) wallet.Wallet {
pk, _ := base64.StdEncoding.DecodeString("OyAWIb4FeP1bY1VhALWrU2JN9/8O1Kv8kWZ0WfXXpOM=")
privateKey := ed25519.NewKeyFromSeed(pk)
w, err := wallet.New(privateKey, wallet.V4R2, 0, nil, blockchain)
w, err := wallet.New(privateKey, wallet.V4R2, blockchain)
if err != nil {
panic("unable to create wallet")
}
Expand Down
2 changes: 1 addition & 1 deletion examples/jetton/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func main() {

pk, _ := base64.StdEncoding.DecodeString("OyAWIb4FeP1bY1VhALWrU2JN9/8O1Kv8kWZ0WfXXpOM=")
privateKey := ed25519.NewKeyFromSeed(pk)
w, err := wallet.New(privateKey, wallet.V4R2, 0, nil, client)
w, err := wallet.New(privateKey, wallet.V4R2, client)
if err != nil {
panic("unable to create wallet")
}
Expand Down
4 changes: 2 additions & 2 deletions tonconnect/proof_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,11 @@ func TestCreateSignedProof(t *testing.T) {
t.Fatalf("SeedToPrivateKey() failed: %v", err)
}
publicKey := privateKey.Public().(ed25519.PublicKey)
stateInit, err := wallet.GenerateStateInit(publicKey, tt.version, 0, nil)
stateInit, err := wallet.GenerateStateInit(publicKey, tt.version, nil, 0, nil)
if err != nil {
t.Fatalf("GenerateStateInit() failed: %v", err)
}
accountID, err := wallet.GenerateWalletAddress(publicKey, tt.version, 0, nil)
accountID, err := wallet.GenerateWalletAddress(publicKey, tt.version, nil, 0, nil)
if err != nil {
t.Fatalf("GenerateWalletAddress() failed: %v", err)
}
Expand Down
4 changes: 2 additions & 2 deletions wallet/wallet_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func TestGenerateWalletAddress(t *testing.T) {
for ver, data := range testData {
key, _ := hex.DecodeString(data.PublicKey)
publicKey := ed25519.PublicKey(key)
address, err := GenerateWalletAddress(publicKey, ver, 0, nil)
address, err := GenerateWalletAddress(publicKey, ver, nil, 0, nil)
if err != nil {
t.Fatalf("address generation failed: %v", err)
}
Expand Down Expand Up @@ -148,7 +148,7 @@ func TestMockBlockchain(t *testing.T) {
func initDefaultWallet(blockchain blockchain) Wallet {
pk, _ := base64.StdEncoding.DecodeString("OyAWIb4FeP1bY1VhALWrU2JN9/8O1Kv8kWZ0WfXXpOM=")
privateKey := ed25519.NewKeyFromSeed(pk)
w, err := New(privateKey, V4R2, 0, nil, blockchain)
w, err := New(privateKey, V4R2, blockchain)
if err != nil {
panic("unable to create wallet")
}
Expand Down

0 comments on commit e813ec7

Please sign in to comment.