Commit 8a21ea4613a5b638dc13e168c6f3452b0cd8d3f4
Kernel: mark location of metering code
Alex Beregszaszi committed on 8/23/2016, 12:27:46 AMParent: 6fea6a822c06422806c410ed001c872285269aa2
Files changed
index.js | changed |
index.js | ||
---|---|---|
@@ -153,13 +153,16 @@ | ||
153 | 153 | if (tx.to.isZero()) { |
154 | 154 | if (tx.data.length !== 0) { |
155 | 155 | console.log('This is a contract deployment transaction') |
156 | 156 | |
157 | - let address = Utils.newAccountAddress(tx.from, tx.data) | |
157 | + // FIXME: do metering injection here | |
158 | + const code = tx.data | |
158 | 159 | |
160 | + let address = Utils.newAccountAddress(tx.from, code) | |
161 | + | |
159 | 162 | this.environment.addAccount(address.toString(), { |
160 | 163 | balance: tx.value, |
161 | - code: tx.data | |
164 | + code: code | |
162 | 165 | }) |
163 | 166 | |
164 | 167 | // FIXME: deduct fees |
165 | 168 |
Built with git-ssb-web