@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.
package/dist/index.cjs CHANGED
@@ -19846,8 +19846,7 @@ async function getVaultExecutionContext(params) {
19846
19846
  if (blockNumber < 0n) throw new ExecutionContextError(400, "blockNumber must be non-negative.");
19847
19847
  if (epochTimestamp < 0n) throw new ExecutionContextError(400, "epochTimestamp must be a non-negative Unix timestamp.");
19848
19848
  if (!(0, viem.isAddress)(params.vaultAddress)) throw new ExecutionContextError(400, "vaultAddress must be a valid EVM address.");
19849
- const chainId = publicClient.chain?.id;
19850
- if (!chainId) throw new ExecutionContextError(400, "publicClient must have an active chain.");
19849
+ const chainId = await publicClient.getChainId();
19851
19850
  const chain = chainIdToName(chainId);
19852
19851
  const network = getNetworkByChainId(chainId);
19853
19852
  const vaultRegistry = getContractAddressByChainIdAndContractName(chainId, "VaultRegistry");