Skip to content

Commit 4c90aff

Browse files
authored
Merge pull request #8277 from BitGo/cecho-378
fix(sdk-coin-tempo): correct recipient address comparison
2 parents 3852d1f + b05a9d4 commit 4c90aff

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

modules/sdk-coin-tempo/src/tempo.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,8 @@ export class Tempo extends AbstractEthLikeNewCoins {
266266
for (let i = 0; i < operations.length; i++) {
267267
const op = operations[i];
268268
const recipient = recipients[i];
269-
if (op.to.toLowerCase() !== recipient.address.toLowerCase()) {
269+
const recipientBaseAddress = recipient.address.split('?')[0];
270+
if (op.to.toLowerCase() !== recipientBaseAddress.toLowerCase()) {
270271
throw new Error(`Operation ${i} recipient mismatch: expected ${recipient.address}, got ${op.to}`);
271272
}
272273
// Compare amounts in base units (smallest denomination)

0 commit comments

Comments
 (0)