Class: Ciri::Types::Account
- Inherits:
-
Object
- Object
- Ciri::Types::Account
- Includes:
- RLP::Serializable
- Defined in:
- lib/ciri/types/account.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.new_empty ⇒ Object
53 54 55 |
# File 'lib/ciri/types/account.rb', line 53 def new_empty Account.new(balance: 0, nonce: 0) end |
Instance Method Details
#empty? ⇒ Boolean
44 45 46 |
# File 'lib/ciri/types/account.rb', line 44 def empty? !has_code? && nonce == 0 && balance == 0 end |
#has_code? ⇒ Boolean
48 49 50 |
# File 'lib/ciri/types/account.rb', line 48 def has_code? code_hash != Utils::BLANK_SHA3 end |