Fixed compatibility with CLI

This commit is contained in:
Tornado Contrib 2024-11-20 11:00:07 +00:00
parent 1f9889c8f0
commit 2723a15cb8
Signed by: tornadocontrib
GPG Key ID: 60B4DF1A076C64B1
2 changed files with 3 additions and 3 deletions

@ -106,7 +106,7 @@ function getWithdrawKeyword(netId, rewardAccount) {
return false;
}
// Fee recipient should be a reward account
if (args[3] !== rewardAccount) {
if ((0, ethers_1.getAddress)(args[3]) !== rewardAccount) {
return false;
}
const { amount, currency } = instance;

@ -1,4 +1,4 @@
import { parseUnits } from 'ethers';
import { getAddress, parseUnits } from 'ethers';
import {
NetIdType,
@ -131,7 +131,7 @@ export function getWithdrawKeyword(netId: NetIdType, rewardAccount: string) {
}
// Fee recipient should be a reward account
if (args[3] !== rewardAccount) {
if (getAddress(args[3]) !== rewardAccount) {
return false;
}