mirror of
https://github.com/oceanprotocol/ocean.js.git
synced 2024-11-26 20:39:05 +01:00
merge
This commit is contained in:
commit
bd82c939a7
@ -225,8 +225,8 @@ Again, lets console log the values so that we can check that they have been save
|
|||||||
|
|
||||||
### 5.3 We send some OCEAN to consumer and staker accounts
|
### 5.3 We send some OCEAN to consumer and staker accounts
|
||||||
```Typescript
|
```Typescript
|
||||||
transfer(web3, publisherAccount, addresses.Ocean, consumerAccount, '100')
|
transfer(web3, config, publisherAccount, addresses.Ocean, consumerAccount, '100')
|
||||||
transfer(web3, publisherAccount, addresses.Ocean, stakerAccount, '100')
|
transfer(web3, config, publisherAccount, addresses.Ocean, stakerAccount, '100')
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -367,9 +367,10 @@ Let's do a quick check of the consumer ETH balance before the swap
|
|||||||
```
|
```
|
||||||
Before we call the contract we have to call `approve` so that the contract can move our tokens. This is standard when using any ERC20 Datatokens
|
Before we call the contract we have to call `approve` so that the contract can move our tokens. This is standard when using any ERC20 Datatokens
|
||||||
```Typescript
|
```Typescript
|
||||||
await approve(web3, consumerAccount, addresses.Ocean, freAddress, '100')
|
await approve(web3, config, consumerAccount, addresses.Ocean, freAddress, '100')
|
||||||
await approve(
|
await approve(
|
||||||
web3,
|
web3,
|
||||||
|
config,
|
||||||
publisherAccount,
|
publisherAccount,
|
||||||
freDatatokenAddress,
|
freDatatokenAddress,
|
||||||
freAddress,
|
freAddress,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user