Fix ledgerId
when forking from Local Node
#163
Labels
feature
Enhancing an existing feature driven by business requirements. Typically backwards compatible.
The
ledgerId
does not return the proper value when forking from a local node network. This applies to both Foundry library and Hardhat plugin.For the Foundry library, the solution is simpler because the
chainId
is already available. We just need to include another case for local node inHtsSystemContractJson::_getLedgerId
.On the other hand, for the Hardhat plugin, the core function
getHtsStorageAt
does not have JSON-RPC access. We could however extend theIMirrorNodeClient
to support retrieving the chainId of the remote network.The text was updated successfully, but these errors were encountered: