File tree Expand file tree Collapse file tree 3 files changed +18
-3
lines changed Expand file tree Collapse file tree 3 files changed +18
-3
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " thirdweb " : patch
3+ ---
4+
5+ Respect bundlerUrl in waitForUserReceipt
Original file line number Diff line number Diff line change 11import type { Chain } from "../../../chains/types.js" ;
2+ import { getChainMetadata } from "../../../chains/utils.js" ;
23
34export async function isZkSyncChain ( chain : Chain ) {
45 if ( chain . id === 1337 || chain . id === 31337 ) {
@@ -16,10 +17,19 @@ export async function isZkSyncChain(chain: Chain) {
1617 chain . id === 4654 ||
1718 chain . id === 333271 ||
1819 chain . id === 37111 ||
19- chain . id === 978658
20+ chain . id === 978658 ||
21+ chain . id === 531050104 ||
22+ chain . id === 4457845
2023 ) {
2124 return true ;
2225 }
2326
24- return false ;
27+ // fallback to checking the stack on rpc
28+ try {
29+ const chainMetadata = await getChainMetadata ( chain ) ;
30+ return chainMetadata . stackType === "zksync_stack" ;
31+ } catch {
32+ // If the network check fails, assume it's not a ZkSync chain
33+ return false ;
34+ }
2535}
Original file line number Diff line number Diff line change @@ -624,7 +624,7 @@ async function _sendUserOp(args: {
624624 } ) ;
625625 // wait for tx receipt rather than return the userOp hash
626626 const receipt = await waitForUserOpReceipt ( {
627- ...options ,
627+ ...bundlerOptions ,
628628 userOpHash,
629629 } ) ;
630630
You can’t perform that action at this time.
0 commit comments