From a1efd20e815b2a2b16513f3854ce4defea47e286 Mon Sep 17 00:00:00 2001 From: Steven Allen Date: Thu, 19 Jan 2023 19:53:09 -0800 Subject: [PATCH] itests: remove dead code from DeployContract We no longer use the nonce here. --- itests/kit/evm.go | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/itests/kit/evm.go b/itests/kit/evm.go index 46aaf52db..63862139c 100644 --- a/itests/kit/evm.go +++ b/itests/kit/evm.go @@ -38,16 +38,9 @@ func (f *TestFullNode) EVM() *EVM { } func (e *EVM) DeployContract(ctx context.Context, sender address.Address, bytecode []byte) eam.CreateReturn { + var err error require := require.New(e.t) - nonce, err := e.MpoolGetNonce(ctx, sender) - if err != nil { - nonce = 0 // assume a zero nonce on error (e.g. sender doesn't exist). - } - - var salt [32]byte - binary.BigEndian.PutUint64(salt[:], nonce) - method := builtintypes.MethodsEAM.CreateExternal initcode := abi.CborBytes(bytecode) params, err := actors.SerializeParams(&initcode)