add traceTransaction

This commit is contained in:
poma 2019-10-25 14:12:28 +03:00
parent 0484408e82
commit d0f8adf0fb
1 changed files with 5 additions and 0 deletions

View File

@ -17,6 +17,10 @@ const takeSnapshot = async () => {
return await send('evm_snapshot')
}
const traceTransaction = async (tx) => {
return await send('debug_traceTransaction', [tx, {}])
}
const revertSnapshot = async (id) => {
await send('evm_revert', [id])
}
@ -44,4 +48,5 @@ module.exports = {
minerStop,
minerStart,
increaseTime,
traceTransaction
}