fix eth api issues with evm constructor changes

This commit is contained in:
vyzo 2022-10-03 22:44:19 +03:00
parent 2cda4547d6
commit 61de2f4a4a
2 changed files with 2 additions and 4 deletions

View File

@ -113,8 +113,7 @@ func (tx *EthTxArgs) ToSignedMessage() (*types.SignedMessage, error) {
to = builtintypes.InitActorAddr
constructorParams, err := actors.SerializeParams(&evm.ConstructorParams{
Bytecode: tx.Input,
InputData: []byte{},
Bytecode: tx.Input,
})
if err != nil {
return nil, fmt.Errorf("failed to serialize constructor params: %w", err)

View File

@ -468,8 +468,7 @@ func (a *EthModule) applyEvmMsg(ctx context.Context, tx api.EthCall) (*api.Invoc
if tx.To == nil {
to = builtintypes.InitActorAddr
constructorParams, err := actors.SerializeParams(&evm.ConstructorParams{
Bytecode: tx.Data,
InputData: []byte{},
Bytecode: tx.Data,
})
if err != nil {
return nil, fmt.Errorf("failed to serialize constructor params: %w", err)