update go-state-types

use CreateExternal

use CreateExternal in itest evm deployment

add missing import

update gst
This commit is contained in:
vyzo
2023-01-14 01:11:11 -05:00
committed by Aayush
parent cb10108c8e
commit 859cdca4f7
7 changed files with 23 additions and 35 deletions
+3 -10
View File
@@ -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,
}