Updating test

This commit is contained in:
Jamie Hewitt 2023-03-16 13:09:15 +03:00
parent e587170a70
commit dd98790cc8
1 changed files with 0 additions and 30 deletions

View File

@ -178,35 +178,5 @@ describe('Delegation tests', async () => {
assert(tx3, 'Transaction failed')
assert(tx3.events.DelegateBoost, 'No Delegate boost event')
sleep(3000)
const delegateQuery = {
query: `query {
veDelegation(id:"${tx3.events.DelegateBoost.returnValues._token_id}"){
id
delegator {
id
}
receiver {
id
}
tokenId
amount
cancelTime
expireTime
block
}
}`
}
const delegateResponse = await fetch(subgraphUrl, {
method: 'POST',
body: JSON.stringify(delegateQuery)
})
const json = await delegateResponse.json()
console.log('Json', json)
console.log('Data', json?.data)
console.log('veDelegation', json?.data?.veDelegations)
assert(json?.data?.veDelegations, 'No veDelegations')
})
})