Skip to content

Commit 989afda

Browse files
fix: convert BigNumberish to string for NRLCAmount compatibility
- Convert requiredStake to string when calling iexec.account.deposit() - Fixes TypeScript error: BigNumberish not assignable to NRLCAmount - NRLCAmount expects number | string | BN, not bigint
1 parent ab4d9f8 commit 989afda

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test-utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ export const ensureSufficientStake = async (
242242

243243
if (BigInt(account.stake.toString()) < BigInt(requiredStake.toString())) {
244244
await setNRlcBalance(walletAddress, requiredStake);
245-
await iexec.account.deposit(requiredStake);
245+
await iexec.account.deposit(requiredStake.toString());
246246
}
247247
};
248248

0 commit comments

Comments
 (0)