@steerprotocol/sdk 3.3.0 → 3.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -19845,8 +19845,7 @@ async function getVaultExecutionContext(params) {
19845
19845
  if (blockNumber < 0n) throw new ExecutionContextError(400, "blockNumber must be non-negative.");
19846
19846
  if (epochTimestamp < 0n) throw new ExecutionContextError(400, "epochTimestamp must be a non-negative Unix timestamp.");
19847
19847
  if (!isAddress(params.vaultAddress)) throw new ExecutionContextError(400, "vaultAddress must be a valid EVM address.");
19848
- const chainId = publicClient.chain?.id;
19849
- if (!chainId) throw new ExecutionContextError(400, "publicClient must have an active chain.");
19848
+ const chainId = await publicClient.getChainId();
19850
19849
  const chain = chainIdToName(chainId);
19851
19850
  const network = getNetworkByChainId(chainId);
19852
19851
  const vaultRegistry = getContractAddressByChainIdAndContractName(chainId, "VaultRegistry");