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
6e44a1fc
Unverified
Commit
6e44a1fc
authored
Sep 01, 2021
by
elenadimitrova
Committed by
Kelvin Fichter
Nov 10, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove Account struct as obsoleted
parent
299a459e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
31 deletions
+0
-31
Lib_OVMCodec.sol
...ages/contracts/contracts/libraries/codec/Lib_OVMCodec.sol
+0
-31
No files found.
packages/contracts/contracts/libraries/codec/Lib_OVMCodec.sol
View file @
6e44a1fc
...
@@ -27,15 +27,6 @@ library Lib_OVMCodec {
...
@@ -27,15 +27,6 @@ library Lib_OVMCodec {
* Structs *
* Structs *
***********/
***********/
struct Account {
uint256 nonce;
uint256 balance;
bytes32 storageRoot;
bytes32 codeHash;
address ethAddress;
bool isFresh;
}
struct EVMAccount {
struct EVMAccount {
uint256 nonce;
uint256 nonce;
uint256 balance;
uint256 balance;
...
@@ -127,28 +118,6 @@ library Lib_OVMCodec {
...
@@ -127,28 +118,6 @@ library Lib_OVMCodec {
return keccak256(encodeTransaction(_transaction));
return keccak256(encodeTransaction(_transaction));
}
}
/**
* Converts an OVM account to an EVM account.
* @param _in OVM account to convert.
* @return Converted EVM account.
*/
function toEVMAccount(
Account memory _in
)
internal
pure
returns (
EVMAccount memory
)
{
return EVMAccount({
nonce: _in.nonce,
balance: _in.balance,
storageRoot: _in.storageRoot,
codeHash: _in.codeHash
});
}
/**
/**
* @notice RLP-encodes an account state struct.
* @notice RLP-encodes an account state struct.
* @param _account Account state struct.
* @param _account Account state struct.
...
...
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