Closed mraszyk closed 3 weeks ago
This PR fixes calls to fetchRootKey in agent-js to be awaited before the agent is actually used. Otherwise, signatures might be verified with the ICP mainnet root key before the root key is successfully fetched.
fetchRootKey
https://dfinity.slack.com/archives/CGA566TPV/p1730739810179459
The fix should be implemented in agent-js.
This PR fixes calls to
fetchRootKey
in agent-js to be awaited before the agent is actually used. Otherwise, signatures might be verified with the ICP mainnet root key before the root key is successfully fetched.