Last active
April 14, 2022 23:27
-
-
Save MCarlomagno/93f5112dfcac580e1110e0a588a22aac to your computer and use it in GitHub Desktop.
This file contains 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
async uploadFileMetadata( | |
path: string, | |
size: number, | |
type: string, | |
name: string, | |
account: string, | |
) { | |
return this.contract.methods | |
.uploadFile(path, size, type, name) | |
.send({ from: account }) | |
.on('transactionHash', onSuccess) | |
.on('error', onError); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment