From c987f369f991e835e4c362e69366d1dd881d5efc Mon Sep 17 00:00:00 2001 From: Micke <155267459+reallesee@users.noreply.github.com> Date: Tue, 15 Jul 2025 13:42:04 +0200 Subject: [PATCH] fix(ics-020): improve string prefix check efficiency --- spec/app/ics-020-fungible-token-transfer/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/app/ics-020-fungible-token-transfer/README.md b/spec/app/ics-020-fungible-token-transfer/README.md index 963896d17..668351e56 100644 --- a/spec/app/ics-020-fungible-token-transfer/README.md +++ b/spec/app/ics-020-fungible-token-transfer/README.md @@ -255,7 +255,7 @@ function sendFungibleTokens( ): uint64 { prefix = "{sourcePort}/{sourceChannel}/" // we are the source if the denomination is not prefixed - source = denomination.slice(0, len(prefix)) !== prefix + source = !denomination.startsWith(prefix) if source { // determine escrow account escrowAccount = channelEscrowAddresses[sourceChannel]