Skip to content

Instantly share code, notes, and snippets.

@MCarlomagno
Last active Apr 14, 2022
Embed
What would you like to do?
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