Fixed compatibility with CLI
This commit is contained in:
parent
1f9889c8f0
commit
2723a15cb8
2
lib/services/schema.js
vendored
2
lib/services/schema.js
vendored
@ -106,7 +106,7 @@ function getWithdrawKeyword(netId, rewardAccount) {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
// Fee recipient should be a reward account
|
// Fee recipient should be a reward account
|
||||||
if (args[3] !== rewardAccount) {
|
if ((0, ethers_1.getAddress)(args[3]) !== rewardAccount) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
const { amount, currency } = instance;
|
const { amount, currency } = instance;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { parseUnits } from 'ethers';
|
import { getAddress, parseUnits } from 'ethers';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
NetIdType,
|
NetIdType,
|
||||||
@ -131,7 +131,7 @@ export function getWithdrawKeyword(netId: NetIdType, rewardAccount: string) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Fee recipient should be a reward account
|
// Fee recipient should be a reward account
|
||||||
if (args[3] !== rewardAccount) {
|
if (getAddress(args[3]) !== rewardAccount) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user