fix: don't replace the method in EthSendRawTransaction (#10129)

This will just cause signature validation to fail.
This commit is contained in:
Steven Allen 2023-01-26 09:22:06 -08:00 committed by GitHub
parent 10acef2845
commit c93717bf77
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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