Skip to content

Commit

Permalink
fix: don't replace the method in EthSendRawTransaction (#10129)
Browse files Browse the repository at this point in the history
This will just cause signature validation to fail.
  • Loading branch information
Stebalien committed Jan 26, 2023
1 parent 10acef2 commit c93717b
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions node/impl/full/eth.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c93717b

Please sign in to comment.