diff --git a/packages/massa-web3/src/experimental/accountOperation.ts b/packages/massa-web3/src/experimental/accountOperation.ts index 093b908d..2fc3b410 100644 --- a/packages/massa-web3/src/experimental/accountOperation.ts +++ b/packages/massa-web3/src/experimental/accountOperation.ts @@ -28,6 +28,7 @@ export class AccountOperation { if (type !== OperationType.RollBuy && type !== OperationType.RollSell) { throw new Error('Invalid roll operation type.') } + // eslint-disable-next-line @typescript-eslint/no-magic-numbers if (amount <= 0) { throw new Error('amount of rolls must be a positive non-zero value.') } @@ -86,6 +87,7 @@ export class AccountOperation { amount: bigint, opts?: OptOpDetails ): Promise { + // eslint-disable-next-line @typescript-eslint/no-magic-numbers if (amount <= 0) { throw new Error('amount to trasnfer must be a positive non-zero value.') } @@ -116,7 +118,7 @@ export class AccountOperation { * * @returns The balance of the account. */ - async fetchBalance(final: boolean = true): Promise { + async fetchBalance(final = true): Promise { return this.client.getBalance(this.account.address.toString(), final) } }