From 2d2a58d35a7e521aa9ab035e9412a15649a847f4 Mon Sep 17 00:00:00 2001 From: Steven Allen Date: Thu, 26 Jan 2023 08:54:00 -0800 Subject: [PATCH] fix: don't replace the method in EthSendRawTransaction This will just cause signature validation to fail. --- node/impl/full/eth.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/node/impl/full/eth.go b/node/impl/full/eth.go index c8d2284b79..5e425876d6 100644 --- a/node/impl/full/eth.go +++ b/node/impl/full/eth.go @@ -690,13 +690,6 @@ func (a *EthModule) EthSendRawTransaction(ctx context.Context, rawTx ethtypes.Et return ethtypes.EmptyEthHash, err } - _, err = a.StateAPI.StateGetActor(ctx, smsg.Message.To, types.EmptyTSK) - if err != nil { - // if actor does not exist on chain yet, set the method to 0 because - // placeholders only implement method 0 - smsg.Message.Method = builtinactors.MethodSend - } - _, err = a.MpoolAPI.MpoolPush(ctx, smsg) if err != nil { return ethtypes.EmptyEthHash, err