nit: put evm case in a block

This commit is contained in:
Steven Allen 2023-02-17 11:17:35 -08:00
parent a3bc65ba05
commit 49cd428c43

View File

@ -369,6 +369,7 @@ func (a *EthModule) EthGetTransactionCount(ctx context.Context, sender ethtypes.
}
// First, handle the case where the "sender" is an EVM actor.
{
actor, err := a.StateManager.LoadActor(ctx, addr, ts)
if err != nil {
if xerrors.Is(err, types.ErrActorNotFound) {
@ -390,6 +391,7 @@ func (a *EthModule) EthGetTransactionCount(ctx context.Context, sender ethtypes.
nonce, err := evmState.Nonce()
return ethtypes.EthUint64(nonce), err
}
}
nonce, err := a.Mpool.GetNonce(ctx, addr, ts.Key())
if err != nil {