fix eth api issues with evm constructor changes
This commit is contained in:
parent
2cda4547d6
commit
61de2f4a4a
@ -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)
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user