Skip to content

Commit

Permalink
fix: [GSW-1947] Protocol Fee (#562)
Browse files Browse the repository at this point in the history
  • Loading branch information
tfrg authored Nov 18, 2024
1 parent bd6d2e3 commit dbb2f1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/web/src/utils/rpc-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export function makeABCIParams(functionName: string, args: (string | number | bo
export function evaluateExpressionToNumber(evaluateExpression: string) {
try {
const result = matchNumberValues(evaluateExpression);
const parsedValue = parseABCIValue(result[0]);
const parsedValue = result.length > 0 ? result[0] : 0;
return BigNumber(parsedValue).toNumber();
} catch {
console.error("Parse Error: " + evaluateExpression);
Expand Down

0 comments on commit dbb2f1d

Please sign in to comment.