Revert some tweaks.
This commit is contained in:
parent
e79e9d35f7
commit
6578726ee6
|
@ -281,7 +281,6 @@ export function handleNftData(event: DataChanged): void {
|
|||
if (data == null) {
|
||||
data = new NftData(id)
|
||||
}
|
||||
data.tx = event.transaction.hash.toHex()
|
||||
data.key = event.params.key
|
||||
data.value = event.params.value
|
||||
data.nft = nft.id
|
||||
|
|
|
@ -171,8 +171,10 @@ describe('Datatoken tests', async () => {
|
|||
})
|
||||
await sleep(2000)
|
||||
const dt = (await initialResponse.json()).data.token
|
||||
assert(dt !== undefined, 'undefined token')
|
||||
const dtTx = dt.tx
|
||||
|
||||
const tx: TransactionReceipt = await web3.eth.getTransactionReceipt(dt.tx)
|
||||
const tx: TransactionReceipt = await web3.eth.getTransactionReceipt(dtTx)
|
||||
assert(dt.id === datatokenAddress, 'incorrect value for: id')
|
||||
assert(dt.symbol, 'incorrect value for: symbol')
|
||||
assert(dt.name, 'incorrect value for: name')
|
||||
|
@ -279,8 +281,10 @@ describe('Datatoken tests', async () => {
|
|||
})
|
||||
await sleep(2000)
|
||||
const dt = (await initialResponse.json()).data.token
|
||||
assert(dt !== undefined, 'undefined token')
|
||||
const dtTx = dt.tx
|
||||
|
||||
const tx: TransactionReceipt = await web3.eth.getTransactionReceipt(dt.tx)
|
||||
const tx: TransactionReceipt = await web3.eth.getTransactionReceipt(dtTx)
|
||||
assert(dt.id === datatokenAddress, 'incorrect value for: id')
|
||||
assert(dt.symbol, 'incorrect value for: symbol')
|
||||
assert(dt.name, 'incorrect value for: name')
|
||||
|
|
Loading…
Reference in New Issue