Skip to content

Instantly share code, notes, and snippets.

@MCarlomagno
Last active April 14, 2022 23:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MCarlomagno/93f5112dfcac580e1110e0a588a22aac to your computer and use it in GitHub Desktop.
Save MCarlomagno/93f5112dfcac580e1110e0a588a22aac to your computer and use it in GitHub Desktop.
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