Method: Eth::Tx#sanitize_chain
- Defined in:
- lib/eth/tx.rb
#sanitize_chain(id) ⇒ Integer
Populates the transaction chain id field with a serializable default value (1) in case it is undefined.
335 336 337 338 |
# File 'lib/eth/tx.rb', line 335 def sanitize_chain(id) id = Chain::ETHEREUM if id.nil? return id end |