pull/7/head
yann300 8 years ago
parent ee2c3c446e
commit 342a16f75c
  1. 1
      test-browser/vmdebugger.js
  2. 2
      test/init.js
  3. 4
      test/resources/insertTestWeb3.js
  4. 2
      test/resources/testWeb3.js

@ -64,6 +64,7 @@ function panels (browser) {
.click('#load') .click('#load')
.click('#nextcall') .click('#nextcall')
.assertStack(['0x', '0x60', '0x65', '0x38', '0x55', '0x60fe47b1']) .assertStack(['0x', '0x60', '0x65', '0x38', '0x55', '0x60fe47b1'])
.pause(5000)
.assertStorageChanges(['0x000x38']) .assertStorageChanges(['0x000x38'])
.assertCallData(['0x60fe47b10000000000000000000000000000000000000000000000000000000000000038']) .assertCallData(['0x60fe47b10000000000000000000000000000000000000000000000000000000000000038'])
.assertCallStack(['0x0d3a18d64dfe4f927832ab58d6451cecc4e517c5']) .assertCallStack(['0x0d3a18d64dfe4f927832ab58d6451cecc4e517c5'])

@ -2,7 +2,7 @@ var init = {
overrideWeb3: function (web3, web3Override) { overrideWeb3: function (web3, web3Override) {
web3.eth.getCode = web3Override.getCode web3.eth.getCode = web3Override.getCode
web3.debug.traceTransaction = web3Override.traceTransaction web3.debug.traceTransaction = web3Override.traceTransaction
web3.debug.storageAt = web3Override.storageAt web3.debug.storageRangeAt = web3Override.storageRangeAt
web3.eth.getTransaction = web3Override.getTransaction web3.eth.getTransaction = web3Override.getTransaction
web3.eth.getTransactionFromBlock = web3Override.getTransactionFromBlock web3.eth.getTransactionFromBlock = web3Override.getTransactionFromBlock
web3.eth.getBlockNumber = web3Override.getBlockNumber web3.eth.getBlockNumber = web3Override.getBlockNumber

@ -28,8 +28,8 @@ function loadTestWeb3 (data) {
callback(null, data.testTraces[txHash]) callback(null, data.testTraces[txHash])
} }
uiTestweb3.debug.storageAt = function (blockNumber, txIndex, address, callback) { uiTestweb3.debug.storageRangeAt = function (blockNumber, txIndex, address, start, end, size, callback) {
callback(null, {}) callback(null, { storage: {}, complete: true })
} }
uiTestweb3.eth.getTransaction = function (txHash, callback) { uiTestweb3.eth.getTransaction = function (txHash, callback) {

@ -19,7 +19,7 @@ web3Override.debug.traceTransaction = function (txHash, options, callback) {
} }
web3Override.debug.storageRangeAt = function (blockNumber, txIndex, address, start, end, maxSize, callback) { web3Override.debug.storageRangeAt = function (blockNumber, txIndex, address, start, end, maxSize, callback) {
callback(null, {}) callback(null, { storage: {}, complete: true })
} }
web3Override.eth.getTransaction = function (txHash, callback) { web3Override.eth.getTransaction = function (txHash, callback) {

Loading…
Cancel
Save