Skip to content

Commit

Permalink
morep tiny
Browse files Browse the repository at this point in the history
  • Loading branch information
rianhughes committed Oct 9, 2023
1 parent a205f72 commit 4cd12e5
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions account/account_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,7 @@ func TestAddDeployAccountDevnet(t *testing.T) {
t.Skip("Skipping test as it requires a devnet environment")
}
client, err := rpc.NewClient(base + "/rpc")
fmt.Println("qwe", base+"/rpc")
require.NoError(t, err, "Error in rpc.NewClient")
provider := rpc.NewProvider(client)

Expand Down Expand Up @@ -450,13 +451,14 @@ func TestAddDeployAccountDevnet(t *testing.T) {
ConstructorCalldata: []*felt.Felt{fakeUserPub},
}

qwe, err := json.MarshalIndent(tx, "", "")
fmt.Println(string(qwe))

precomputedAddress, err := acnt.PrecomputeAddress(&felt.Zero, fakeUserPub, classHash, tx.ConstructorCalldata)
require.NoError(t, acnt.SignDeployAccountTransaction(context.Background(), &tx, precomputedAddress))

qwe, err := json.MarshalIndent(tx, "", "")
fmt.Println(string(qwe))

resp, err := acnt.AddDeployAccountTransaction(context.Background(), tx)
fmt.Println("resp, err", resp, err)
require.NoError(t, err, "AddDeployAccountTransaction gave an Error")
require.NotNil(t, resp, "AddDeployAccountTransaction resp not nil")
}
Expand Down

0 comments on commit 4cd12e5

Please sign in to comment.