Commit 6e44a1fc authored by elenadimitrova's avatar elenadimitrova Committed by Kelvin Fichter

Remove Account struct as obsoleted

parent 299a459e
...@@ -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.
......
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