Skip to content

Commit b5e747f

Browse files
fix: improves getContractAddressFromReceipt (#3323)
improves getContractAddressFromReceipt Signed-off-by: Konstantina Blazhukova <[email protected]>
1 parent b58d891 commit b5e747f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/relay/src/lib/eth.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2390,8 +2390,8 @@ export class EthImpl implements Eth {
23902390
}
23912391

23922392
// Handle system contract creation
2393-
// reason for substring from the 90th character is described in the design doc in this repo: docs/design/hts_address_tx_receipt.md
2394-
const tokenAddress = receiptResponse.call_result.substring(90);
2393+
// reason for substring is described in the design doc in this repo: docs/design/hts_address_tx_receipt.md
2394+
const tokenAddress = receiptResponse.call_result.substring(receiptResponse.call_result.length - 40);
23952395
return prepend0x(tokenAddress);
23962396
}
23972397

0 commit comments

Comments
 (0)