Skip to content

Commit

Permalink
check txHash on buy/create
Browse files Browse the repository at this point in the history
  • Loading branch information
clbrge committed Apr 22, 2023
1 parent 5240244 commit bc56d9f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@rougenetwork/ticket-dapp",
"version": "0.13.0",
"version": "0.13.1",
"license": "AGPL-3.0-only",
"scripts": {
"clean": "rimraf .build",
Expand Down
1 change: 1 addition & 0 deletions src/routes/(app)/i/[type]/[chain]:[contract]/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@
rcpt.blockNumber
)
for (const e of events) {
if (e.transactionHash !== rcpt.hash) continue
nft.add(`${contract}:${e.args.tokenId}`)
}
}
Expand Down
7 changes: 3 additions & 4 deletions src/routes/(app)/project/[address]/draft/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -87,15 +87,14 @@
auths,
onReceipt: async (rcpt) => {
// control.loadText = `Your project has been created!`
const instance = blockchain.factory($chainId)
const events = await instance.queryFilter(
instance.filters.ProxyCreation(),
rcpt.blockNumber
)
console.log(events)
if (events.length > 0) {
const proxy = events[0].args.proxy
for (const e of events) {
if (e.transactionHash !== rcpt.hash) continue
const proxy = e.args.proxy
project.add(proxy)
project.deleteDraft(address)
// projet page in charge of waiting infos loaded ?
Expand Down

0 comments on commit bc56d9f

Please sign in to comment.