Skip to content

Commit

Permalink
Merge pull request #178 from oceanprotocol/bug/fix_dt_approve
Browse files Browse the repository at this point in the history
Update Datatokens.ts
  • Loading branch information
Ahmed Ali authored Jul 21, 2020
2 parents 9b0bee7 + a173435 commit 4b7bf22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/datatokens/Datatokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export class DataTokens {
)
const trxReceipt = await datatoken.methods
.approve(spender, this.web3.utils.toWei(amount))
.send()
.send({ from: address })
return trxReceipt
}

Expand Down

0 comments on commit 4b7bf22

Please sign in to comment.