mirror of
https://github.com/oceanprotocol-archive/squid-js.git
synced 2024-02-02 15:31:51 +01:00
fixed token approve call
This commit is contained in:
parent
6e1fff2ed1
commit
90b0f662c3
@ -87,7 +87,7 @@ export default class Ocean {
|
||||
initialRequestEventHandler, accessCommittedEventHandler, tokenPublishedEventHandler) {
|
||||
const { token, market, auth } = this
|
||||
// Allow market contract to transfer funds on the consumer's behalf
|
||||
token.approve(market.address, price, { from: senderAddress, gas: 2000000 })
|
||||
token.contract.approve(market.address, price, { from: senderAddress, gas: 2000000 })
|
||||
// Submit the access request
|
||||
auth.initiateAccessRequest(
|
||||
assetId, publisherId, publicKey,
|
||||
|
Loading…
Reference in New Issue
Block a user