We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b58d891 commit b5e747fCopy full SHA for b5e747f
packages/relay/src/lib/eth.ts
@@ -2390,8 +2390,8 @@ export class EthImpl implements Eth {
2390
}
2391
2392
// 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);
+ // reason for substring is described in the design doc in this repo: docs/design/hts_address_tx_receipt.md
+ const tokenAddress = receiptResponse.call_result.substring(receiptResponse.call_result.length - 40);
2395
return prepend0x(tokenAddress);
2396
2397
0 commit comments