timelock-sdk 0.0.253 → 0.0.254

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/client.cjs CHANGED
@@ -2116,14 +2116,21 @@ const useUpdateMarketPricing = (marketAddr) => {
2116
2116
  data.minPremiumAmount
2117
2117
  ]
2118
2118
  });
2119
- const deployEvent = (await publicClient.waitForTransactionReceipt({ hash })).logs.find((log) => log.address.toLowerCase() === factoryAddr);
2120
- if (!deployEvent) throw new Error("DeployFeeStrategy event not found");
2119
+ const receipt = await publicClient.waitForTransactionReceipt({ hash });
2120
+ const deployEvent = receipt.logs.find((log) => log.address.toLowerCase() === factoryAddr.toLowerCase());
2121
+ if (!deployEvent) {
2122
+ console.error(receipt);
2123
+ throw new Error(`Deploy event not found in tx: ${hash}`);
2124
+ }
2121
2125
  const decodedEvent = (0, viem.decodeEventLog)({
2122
2126
  abi: require_factory.factoryAbi,
2123
2127
  data: deployEvent.data,
2124
2128
  topics: deployEvent.topics
2125
2129
  });
2126
- if (decodedEvent.eventName !== "DeployStaticPerpsPricing" && decodedEvent.eventName !== "DeployOptionPricing") throw new Error("Unexpected event");
2130
+ if (decodedEvent.eventName !== "DeployStaticPerpsPricing" && decodedEvent.eventName !== "DeployOptionPricing") {
2131
+ console.error(receipt);
2132
+ throw new Error(`Unexpected event ${decodedEvent.eventName} in tx ${hash}`);
2133
+ }
2127
2134
  const pricingAddr = decodedEvent.args.pricing;
2128
2135
  const hash2 = await writeContractAsync({
2129
2136
  address: marketAddr,