diff --git a/packages/amino/src/multisig.ts b/packages/amino/src/multisig.ts index 795b5caf..7e8ecc5a 100644 --- a/packages/amino/src/multisig.ts +++ b/packages/amino/src/multisig.ts @@ -12,7 +12,9 @@ import { MultisigThresholdPubkey, SinglePubkey } from "./pubkeys"; * Returns 0 if `a === b`. */ export function compareArrays(a: Uint8Array, b: Uint8Array): number { - return toHex(a).localeCompare(toHex(b)); + const aHex = toHex(a); + const bHex = toHex(b); + return aHex === bHex ? 0 : aHex < bHex ? -1 : 1; } export function createMultisigThresholdPubkey(