From c93717bf7799ab2055dc292402a549031f756460 Mon Sep 17 00:00:00 2001 From: Steven Allen Date: Thu, 26 Jan 2023 09:22:06 -0800 Subject: [PATCH] fix: don't replace the method in EthSendRawTransaction (#10129) 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 a664872334..14c69b2e17 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