Skip to content

Commit

Permalink
Merge pull request #14 from DyadStablecoin/v2
Browse files Browse the repository at this point in the history
parse event
  • Loading branch information
shafu0x authored Jan 29, 2023
2 parents 19663fe + 562560d commit 18b9613
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,7 @@ async function insertNfts(event) {
const lastVersion = await getLastVersion();
const nextVersion = lastVersion + 1;

// const syncId = parseEvent(event).syncId;
const syncId = 0;
const syncId = parseEvent(event).syncId;
insertNextVersion(nextVersion, syncId);

const totalSupply = await dNftContract.methods.totalSupply().call();
Expand Down Expand Up @@ -146,5 +145,4 @@ function subscribeToSync() {
);
}

insertNfts();
subscribeToSync();

0 comments on commit 18b9613

Please sign in to comment.