Skip to content

Commit

Permalink
Fix minor test
Browse files Browse the repository at this point in the history
  • Loading branch information
rianhughes committed Nov 22, 2023
1 parent e41ccc6 commit 2765f79
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion account/account.go
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ func (account *Account) TransactionHashDeployAccount(tx rpc.DeployAccountType, c
[]*felt.Felt{txn.Nonce},
)
case rpc.DeployAccountTxnV3:
if txn.Version == "" || txn.ResourceBounds == (rpc.ResourceBoundsMapping{}) || txn.Nonce == nil || txn.PayMasterData == nil || txn.AccountDeploymentData == nil {
if txn.Version == "" || txn.ResourceBounds == (rpc.ResourceBoundsMapping{}) || txn.Nonce == nil || txn.PayMasterData == nil {
return nil, ErrNotAllParametersSet
}
calldata := []*felt.Felt{txn.ClassHash, txn.ContractAddressSalt}
Expand Down
11 changes: 5 additions & 6 deletions account/account_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -945,12 +945,11 @@ func TestTransactionHashdeployAccountINTEGRATION(t *testing.T) {
MaxPricePerUnit: utils.TestHexToFelt(t, "0x0"),
},
},
Tip: utils.TestHexToFelt(t, "0x0"),
PayMasterData: []*felt.Felt{},
AccountDeploymentData: []*felt.Felt{},
NonceDataMode: rpc.DAModeL1,
FeeMode: rpc.DAModeL1,
ClassHash: utils.TestHexToFelt(t, "0x2338634f11772ea342365abd5be9d9dc8a6f44f159ad782fdebd3db5d969738"),
Tip: utils.TestHexToFelt(t, "0x0"),
PayMasterData: []*felt.Felt{},
NonceDataMode: rpc.DAModeL1,
FeeMode: rpc.DAModeL1,
ClassHash: utils.TestHexToFelt(t, "0x2338634f11772ea342365abd5be9d9dc8a6f44f159ad782fdebd3db5d969738"),
ConstructorCalldata: utils.TestHexArrToFelt(t, []string{
"0x5cd65f3d7daea6c63939d659b8473ea0c5cd81576035a4d34e52fb06840196c",
}),
Expand Down

0 comments on commit 2765f79

Please sign in to comment.