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 {
address(proxyEOA),
keccak256(Lib_EthUtils.getCode(address(proxyEOA)))
);
_setAccountNonce(eoa, 0);
}
......@@ -990,8 +992,8 @@ contract OVM_ExecutionManager is iOVM_ExecutionManager, Lib_AddressResolver {
_revertWithFlag(flag);
}
// 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
// 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
// is to record the gas refund reported by the call (enforced by safety checking).
if (
flag == RevertFlag.INTENTIONAL_REVERT
......
......@@ -59,6 +59,10 @@ const test_ovmCREATEEOA: TestDefinition = {
expectedReturnStatus: true,
expectedReturnValue: undefined,
},
{
functionName: 'ovmGETNONCE',
expectedReturnValue: 0,
},
{
functionName: 'ovmEXTCODESIZE',
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