Commit cb4f29ef authored by Alina's avatar Alina Committed by GitHub

createEOA setAccountNonce to 0 (#109)

parent e596f566
...@@ -498,6 +498,8 @@ contract OVM_ExecutionManager is iOVM_ExecutionManager, Lib_AddressResolver { ...@@ -498,6 +498,8 @@ contract OVM_ExecutionManager is iOVM_ExecutionManager, Lib_AddressResolver {
address(proxyEOA), address(proxyEOA),
keccak256(Lib_EthUtils.getCode(address(proxyEOA))) keccak256(Lib_EthUtils.getCode(address(proxyEOA)))
); );
_setAccountNonce(eoa, 0);
} }
...@@ -990,8 +992,8 @@ contract OVM_ExecutionManager is iOVM_ExecutionManager, Lib_AddressResolver { ...@@ -990,8 +992,8 @@ contract OVM_ExecutionManager is iOVM_ExecutionManager, Lib_AddressResolver {
_revertWithFlag(flag); _revertWithFlag(flag);
} }
// INTENTIONAL_REVERT, UNSAFE_BYTECODE, and STATIC_VIOLATION aren't dependent on the // INTENTIONAL_REVERT, UNSAFE_BYTECODE, and STATIC_VIOLATION aren't dependent on the
// input state, so we can just handle them like standard reverts. Our only change here // input state, so we can just handle them like standard reverts. Our only change here
// is to record the gas refund reported by the call (enforced by safety checking). // is to record the gas refund reported by the call (enforced by safety checking).
if ( if (
flag == RevertFlag.INTENTIONAL_REVERT flag == RevertFlag.INTENTIONAL_REVERT
......
...@@ -59,6 +59,10 @@ const test_ovmCREATEEOA: TestDefinition = { ...@@ -59,6 +59,10 @@ const test_ovmCREATEEOA: TestDefinition = {
expectedReturnStatus: true, expectedReturnStatus: true,
expectedReturnValue: undefined, expectedReturnValue: undefined,
}, },
{
functionName: 'ovmGETNONCE',
expectedReturnValue: 0,
},
{ {
functionName: 'ovmEXTCODESIZE', functionName: 'ovmEXTCODESIZE',
functionParams: { functionParams: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment