Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
exchain
nebula
Commits
cb4f29ef
Commit
cb4f29ef
authored
Dec 10, 2020
by
Alina
Committed by
GitHub
Dec 10, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
createEOA setAccountNonce to 0 (#109)
parent
e596f566
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
OVM_ExecutionManager.sol
...ptimistic-ethereum/OVM/execution/OVM_ExecutionManager.sol
+4
-2
ovmCREATEEOA.spec.ts
...s/OVM/execution/OVM_ExecutionManager/ovmCREATEEOA.spec.ts
+4
-0
No files found.
packages/contracts/contracts/optimistic-ethereum/OVM/execution/OVM_ExecutionManager.sol
View file @
cb4f29ef
...
@@ -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
...
...
packages/contracts/test/contracts/OVM/execution/OVM_ExecutionManager/ovmCREATEEOA.spec.ts
View file @
cb4f29ef
...
@@ -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
:
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment