You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 17, 2021. It is now read-only.
Copy file name to clipboardExpand all lines: docs/classes/_account_.account.md
+7-5Lines changed: 7 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -36,7 +36,7 @@
36
36
37
37
*Defined in [account.ts:61](https://github.com/ethereumjs/ethereumjs-util/blob/master/src/account.ts#L61)*
38
38
39
-
This constructor takes the values, validates and assigns them.
39
+
This constructor assigns and validates the values.
40
40
Use the static factory methods to assist in creating an Account from varying data types.
41
41
42
42
**Parameters:**
@@ -88,9 +88,9 @@ ___
88
88
89
89
▸ **isContract**(): *boolean*
90
90
91
-
*Defined in [account.ts:96](https://github.com/ethereumjs/ethereumjs-util/blob/master/src/account.ts#L96)*
91
+
*Defined in [account.ts:106](https://github.com/ethereumjs/ethereumjs-util/blob/master/src/account.ts#L106)*
92
92
93
-
Returns a `Boolean`deteremining if the account is a contract.
93
+
Returns a `Boolean`determining if the account is a contract.
94
94
95
95
**Returns:***boolean*
96
96
@@ -100,9 +100,11 @@ ___
100
100
101
101
▸ **isEmpty**(): *boolean*
102
102
103
-
*Defined in [account.ts:103](https://github.com/ethereumjs/ethereumjs-util/blob/master/src/account.ts#L103)*
103
+
*Defined in [account.ts:115](https://github.com/ethereumjs/ethereumjs-util/blob/master/src/account.ts#L115)*
104
104
105
105
Returns a `Boolean` determining if the account is empty.
106
+
For more details about account emptiness see [EIP-161](https://eips.ethereum.org/EIPS/eip-161).
107
+
Note: The stateRoot is also checked to be empty since in Frontier it was possible to create a contract with no code where nonce remained 0 but some values were written to storage in the constructor (thus stateRoot is not KECCAK256_RLP).
106
108
107
109
**Returns:***boolean*
108
110
@@ -112,7 +114,7 @@ ___
112
114
113
115
▸ **serialize**(): *Buffer*
114
116
115
-
*Defined in [account.ts:89](https://github.com/ethereumjs/ethereumjs-util/blob/master/src/account.ts#L89)*
117
+
*Defined in [account.ts:99](https://github.com/ethereumjs/ethereumjs-util/blob/master/src/account.ts#L99)*
116
118
117
119
Returns the RLP serialization of the account as a `Buffer`.
0 commit comments