update go-state-types
use CreateExternal use CreateExternal in itest evm deployment add missing import update gst
This commit is contained in:
+3
-10
@@ -249,15 +249,8 @@ var EvmDeployCmd = &cli.Command{
|
||||
return err
|
||||
}
|
||||
|
||||
nonce, err := api.MpoolGetNonce(ctx, fromAddr)
|
||||
if err != nil {
|
||||
nonce = 0 // assume a zero nonce on error (e.g. sender doesn't exist).
|
||||
}
|
||||
|
||||
params, err := actors.SerializeParams(&eam.CreateParams{
|
||||
Initcode: contract,
|
||||
Nonce: nonce,
|
||||
})
|
||||
initcode := abi.CborBytes(contract)
|
||||
params, err := actors.SerializeParams(&initcode)
|
||||
if err != nil {
|
||||
return fmt.Errorf("failed to serialize Create params: %w", err)
|
||||
}
|
||||
@@ -266,7 +259,7 @@ var EvmDeployCmd = &cli.Command{
|
||||
To: builtintypes.EthereumAddressManagerActorAddr,
|
||||
From: fromAddr,
|
||||
Value: big.Zero(),
|
||||
Method: builtintypes.MethodsEAM.Create,
|
||||
Method: builtintypes.MethodsEAM.CreateExternal,
|
||||
Params: params,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user