1
0
mirror of https://github.com/oceanprotocol/ocean.js.git synced 2024-11-26 20:39:05 +01:00

update comments related to amount units

This commit is contained in:
Miquel A. Cabot 2022-04-01 16:31:37 +02:00
parent 02fa3b8912
commit 0735a4b4e3

View File

@ -45,7 +45,7 @@ export async function estApprove(
* @param {String} account * @param {String} account
* @param {String} tokenAddress * @param {String} tokenAddress
* @param {String} spender * @param {String} spender
* @param {String} amount (always expressed as wei) * @param {String} amount amount of ERC20 tokens, expressed without decimals (not as wei)
* @param {String} force if true, will overwrite any previous allowence. Else, will check if allowence is enough and will not send a transaction if it's not needed * @param {String} force if true, will overwrite any previous allowence. Else, will check if allowence is enough and will not send a transaction if it's not needed
*/ */
export async function approve( export async function approve(
@ -126,7 +126,7 @@ export async function estTransfer(
* @param {String} account * @param {String} account
* @param {String} tokenAddress * @param {String} tokenAddress
* @param {String} recipient * @param {String} recipient
* @param {String} amount (always expressed as wei) * @param {String} amount amount of ERC20 tokens, expressed without decimals (not as wei)
* @param {String} force if true, will overwrite any previous allowence. Else, will check if allowence is enough and will not send a transaction if it's not needed * @param {String} force if true, will overwrite any previous allowence. Else, will check if allowence is enough and will not send a transaction if it's not needed
*/ */
export async function transfer( export async function transfer(