nit: put evm case in a block
This commit is contained in:
parent
a3bc65ba05
commit
49cd428c43
@ -369,6 +369,7 @@ func (a *EthModule) EthGetTransactionCount(ctx context.Context, sender ethtypes.
|
|||||||
}
|
}
|
||||||
|
|
||||||
// First, handle the case where the "sender" is an EVM actor.
|
// First, handle the case where the "sender" is an EVM actor.
|
||||||
|
{
|
||||||
actor, err := a.StateManager.LoadActor(ctx, addr, ts)
|
actor, err := a.StateManager.LoadActor(ctx, addr, ts)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
if xerrors.Is(err, types.ErrActorNotFound) {
|
if xerrors.Is(err, types.ErrActorNotFound) {
|
||||||
@ -390,6 +391,7 @@ func (a *EthModule) EthGetTransactionCount(ctx context.Context, sender ethtypes.
|
|||||||
nonce, err := evmState.Nonce()
|
nonce, err := evmState.Nonce()
|
||||||
return ethtypes.EthUint64(nonce), err
|
return ethtypes.EthUint64(nonce), err
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
nonce, err := a.Mpool.GetNonce(ctx, addr, ts.Key())
|
nonce, err := a.Mpool.GetNonce(ctx, addr, ts.Key())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user