Skip to content

Commit

Permalink
fix: improves getContractAddressFromReceipt (#3323)
Browse files Browse the repository at this point in the history
improves getContractAddressFromReceipt

Signed-off-by: Konstantina Blazhukova <[email protected]>
  • Loading branch information
konstantinabl authored Dec 11, 2024
1 parent b58d891 commit b5e747f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/relay/src/lib/eth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2390,8 +2390,8 @@ export class EthImpl implements Eth {
}

// Handle system contract creation
// reason for substring from the 90th character is described in the design doc in this repo: docs/design/hts_address_tx_receipt.md
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);
return prepend0x(tokenAddress);
}

Expand Down

0 comments on commit b5e747f

Please sign in to comment.