Skip to content

Commit

Permalink
change pubkey
Browse files Browse the repository at this point in the history
  • Loading branch information
rianhughes committed Oct 9, 2023
1 parent 4cd12e5 commit e0267cc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions account/account_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ func TestAddDeployAccountDevnet(t *testing.T) {
require.NoError(t, err, "Error setting up Devnet")
fakeUser := acnts[0]
fakeUserAddr := utils.TestHexToFelt(t, fakeUser.Address)
fakeUserPub := utils.TestHexToFelt(t, fakeUser.PublicKey)
// fakeUserPub := utils.TestHexToFelt(t, fakeUser.PublicKey)

resp2, err := devnet.Mint(fakeUserAddr, new(big.Int).SetInt64(1000000000000000000))
fmt.Println("resp2", resp2)
Expand All @@ -447,11 +447,11 @@ func TestAddDeployAccountDevnet(t *testing.T) {
Version: rpc.TransactionV1,
Signature: []*felt.Felt{},
ClassHash: classHash,
ContractAddressSalt: fakeUserPub,
ConstructorCalldata: []*felt.Felt{fakeUserPub},
ContractAddressSalt: fakeUserAddr,
ConstructorCalldata: []*felt.Felt{fakeUserAddr},
}

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

qwe, err := json.MarshalIndent(tx, "", "")
Expand Down

0 comments on commit e0267cc

Please sign in to comment.