Created
December 6, 2020 08:57
-
-
Save parv3213/d48df85848ad116657c7ab07f5c9734f to your computer and use it in GitHub Desktop.
Once web3 event function
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const eventOnce = () => { | |
contractInstance.once("Transfer", (error, event) => { | |
if(!error) console.log(event); | |
else console.log(`Error: ${error}`); | |
}) | |
} | |
eventOnce(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment