Class: Ethereum::SpecialContract::Identity
- Defined in:
- lib/ethereum/special_contract.rb
Instance Method Summary collapse
Instance Method Details
#call(ext, msg) ⇒ Object
69 70 71 72 73 74 75 76 77 78 |
# File 'lib/ethereum/special_contract.rb', line 69 def call(ext, msg) gas_cost = Opcodes::GIDENTITYBASE + (Utils.ceil32(msg.data.size) / 32) * Opcodes::GIDENTITYWORD return 0, 0, [] if msg.gas < gas_cost o = [] msg.data.extract_copy(o, 0, 0, msg.data.size) return 1, msg.gas - gas_cost, o end |