Merge pull request #10081 from filecoin-project/steb/remove-dead-code
itests: remove dead code from DeployContract
This commit is contained in:
commit
12ca08d9a6
@ -43,16 +43,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)
|
||||
|
Loading…
Reference in New Issue
Block a user