From 075b54cc89556271a2dee34780232bc0b422dbb7 Mon Sep 17 00:00:00 2001 From: MadReza Date: Tue, 19 Dec 2023 14:21:16 +0330 Subject: [PATCH] fix: make the gas price regex case sensitive --- packages/stargate/src/fee.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/stargate/src/fee.ts b/packages/stargate/src/fee.ts index 9ca8682a..21c3c5c2 100644 --- a/packages/stargate/src/fee.ts +++ b/packages/stargate/src/fee.ts @@ -37,7 +37,7 @@ export class GasPrice { */ public static fromString(gasPrice: string): GasPrice { // Use Decimal.fromUserInput and checkDenom for detailed checks and helpful error messages - const matchResult = gasPrice.match(/^([0-9.]+)([a-zA-Z][a-zA-Z0-9/:._-]*)$/i); + const matchResult = gasPrice.match(/^([0-9.]+)([a-zA-Z][a-zA-Z0-9/:._-]*)$/); if (!matchResult) { throw new Error("Invalid gas price string"); }