git ssb

0+

wanderer🌟 / js-primea-hypervisor



Commit e0e6608f9df71b679e52c4d0916732e4e8201fc2

remove address from ETHinterfacec

wanderer committed on 11/18/2016, 12:12:33 PM
Parent: 229256951b870dc5f3a910c2e413c4df95f6cefa

Files changed

EVMinterface.jschanged
EVMinterface.jsView
@@ -5,9 +5,8 @@
55 const fs = require('fs')
66 const path = require('path')
77 const ethUtil = require('ethereumjs-util')
88 const Vertex = require('merkle-trie')
9-const Address = require('./deps/address.js')
109 const U256 = require('./deps/u256.js')
1110
1211 const U128_SIZE_BYTES = 16
1312 const ADDRESS_SIZE_BYTES = 20
@@ -616,9 +615,9 @@
616615 * @param {integer} offset the offset to load the address from
617616 */
618617 selfDestruct (addressOffset) {
619618 this.kernel.environment.selfDestruct = true
620- this.kernel.environment.selfDestructAddress = Address.fromMemory(this.getMemory(addressOffset, ADDRESS_SIZE_BYTES))
619+ this.kernel.environment.selfDestructAddress = this.getMemory(addressOffset, ADDRESS_SIZE_BYTES)
621620 this.kernel.environment.gasRefund += 24000
622621 }
623622
624623 getMemory (offset, length) {

Built with git-ssb-web