File tree Expand file tree Collapse file tree 2 files changed +16
-6
lines changed
apps/dashboard/src/@/constants
packages/thirdweb/src/utils/any-evm/zksync Expand file tree Collapse file tree 2 files changed +16
-6
lines changed Original file line number Diff line number Diff line change @@ -54,16 +54,25 @@ export function getThirdwebClient(jwt?: string) {
5454 chain : transaction . chain ,
5555 } ,
5656 transaction : serializedTx ,
57+ } ) . catch ( ( e ) => {
58+ console . warn (
59+ "No zk paymaster data available on chain " ,
60+ transaction . chain . id ,
61+ e ,
62+ ) ;
63+ return undefined ;
5764 } ) ;
5865 return {
5966 account,
6067 transaction : {
6168 ...transaction ,
62- eip712 : {
63- ...transaction . eip712 ,
64- paymaster : pmData . paymaster ,
65- paymasterInput : pmData . paymasterInput ,
66- } ,
69+ eip712 : pmData
70+ ? {
71+ ...transaction . eip712 ,
72+ paymaster : pmData . paymaster ,
73+ paymasterInput : pmData . paymasterInput ,
74+ }
75+ : transaction . eip712 ,
6776 } ,
6877 } ;
6978 }
Original file line number Diff line number Diff line change @@ -18,7 +18,8 @@ export async function isZkSyncChain(chain: Chain) {
1818 chain . id === 37111 ||
1919 chain . id === 978658 ||
2020 chain . id === 531050104 ||
21- chain . id === 4457845
21+ chain . id === 4457845 ||
22+ chain . id === 2741
2223 ) {
2324 return true ;
2425 }
You can’t perform that action at this time.
0 commit comments