Skip to content

Commit b05a9d4

Browse files
committed
fix(sdk-coin-tempo): correct recipient address comparison
Ticket: CECHO-378
1 parent 33a2dac commit b05a9d4

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)