|
|
@ -22,7 +22,7 @@ function getLastTransactionHash (browser: NightwatchBrowser, callback: (hash: st |
|
|
|
const current = deployedContracts[i] |
|
|
|
const current = deployedContracts[i] |
|
|
|
const attr = current.getAttribute('data-id') |
|
|
|
const attr = current.getAttribute('data-id') |
|
|
|
// For web3 provider, a contract call simulates a tx hash starting with 'block_txcall'
|
|
|
|
// For web3 provider, a contract call simulates a tx hash starting with 'block_txcall'
|
|
|
|
if (attr && ( attr.replace('block_tx', '').startsWith('0x') || attr.replace('block_txcall', '').startsWith('0x'))) { |
|
|
|
if (attr && (attr.replace('block_tx', '').startsWith('0x') || attr.replace('block_txcall', '').startsWith('0x'))) { |
|
|
|
return attr.replace('block_tx', '') |
|
|
|
return attr.replace('block_tx', '') |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|