git ssb

0+

wanderer🌟 / js-primea-hypervisor



Commit 8a21ea4613a5b638dc13e168c6f3452b0cd8d3f4

Kernel: mark location of metering code

Alex Beregszaszi committed on 8/23/2016, 12:27:46 AM
Parent: 6fea6a822c06422806c410ed001c872285269aa2

Files changed

index.jschanged
index.jsView
@@ -153,13 +153,16 @@
153153 if (tx.to.isZero()) {
154154 if (tx.data.length !== 0) {
155155 console.log('This is a contract deployment transaction')
156156
157- let address = Utils.newAccountAddress(tx.from, tx.data)
157+ // FIXME: do metering injection here
158+ const code = tx.data
158159
160+ let address = Utils.newAccountAddress(tx.from, code)
161+
159162 this.environment.addAccount(address.toString(), {
160163 balance: tx.value,
161- code: tx.data
164+ code: code
162165 })
163166
164167 // FIXME: deduct fees
165168

Built with git-ssb-web