From 2765f795a270e3e48435d68ea7ec03db3581e7ea Mon Sep 17 00:00:00 2001 From: rianhughes Date: Wed, 22 Nov 2023 11:43:06 +0200 Subject: [PATCH] Fix minor test --- account/account.go | 2 +- account/account_test.go | 11 +++++------ 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/account/account.go b/account/account.go index 5e32c93d..2b05b1b3 100644 --- a/account/account.go +++ b/account/account.go @@ -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} diff --git a/account/account_test.go b/account/account_test.go index 47101f98..8f7ad1de 100644 --- a/account/account_test.go +++ b/account/account_test.go @@ -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", }),