mirror of
https://github.com/oceanprotocol/ocean.js.git
synced 2024-11-26 20:39:05 +01:00
Update Datatokens.ts
add From
This commit is contained in:
parent
9b0bee708e
commit
a1734354bf
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user