Skip to content

Commit 5e1159f

Browse files
authored
fix: wallet connect bug (#123)
1 parent eee5a71 commit 5e1159f

File tree

7 files changed

+579
-5
lines changed

7 files changed

+579
-5
lines changed

packages/walletconnect-connector/src/WalletConnectConnector.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ export class WalletConnectConnector extends FuelConnector {
214214
* ============================================================
215215
*/
216216
async ping(): Promise<boolean> {
217-
await this.configProviders();
217+
await this.getProviders();
218218
return true;
219219
}
220220

Lines changed: 271 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,271 @@
1+
{
2+
"chain_name": "Upgradable Testnet",
3+
"consensus_parameters": {
4+
"V1": {
5+
"tx_params": {
6+
"V1": {
7+
"max_inputs": 255,
8+
"max_outputs": 255,
9+
"max_witnesses": 255,
10+
"max_gas_per_tx": 30000000,
11+
"max_size": 112640,
12+
"max_bytecode_subsections": 256
13+
}
14+
},
15+
"predicate_params": {
16+
"V1": {
17+
"max_predicate_length": 102400,
18+
"max_predicate_data_length": 102400,
19+
"max_message_data_length": 102400,
20+
"max_gas_per_predicate": 30000000
21+
}
22+
},
23+
"script_params": {
24+
"V1": {
25+
"max_script_length": 102400,
26+
"max_script_data_length": 102400
27+
}
28+
},
29+
"contract_params": {
30+
"V1": {
31+
"contract_max_size": 102400,
32+
"max_storage_slots": 1760
33+
}
34+
},
35+
"fee_params": {
36+
"V1": {
37+
"gas_price_factor": 92,
38+
"gas_per_byte": 63
39+
}
40+
},
41+
"chain_id": 0,
42+
"gas_costs": {
43+
"V1": {
44+
"add": 2,
45+
"addi": 2,
46+
"aloc": 1,
47+
"and": 2,
48+
"andi": 2,
49+
"bal": 366,
50+
"bhei": 2,
51+
"bhsh": 2,
52+
"burn": 33949,
53+
"cb": 2,
54+
"cfei": 2,
55+
"cfsi": 2,
56+
"div": 2,
57+
"divi": 2,
58+
"eck1": 3347,
59+
"ecr1": 46165,
60+
"ed19": 4210,
61+
"eq": 2,
62+
"exp": 2,
63+
"expi": 2,
64+
"flag": 1,
65+
"gm": 2,
66+
"gt": 2,
67+
"gtf": 16,
68+
"ji": 2,
69+
"jmp": 2,
70+
"jne": 2,
71+
"jnei": 2,
72+
"jnzi": 2,
73+
"jmpf": 2,
74+
"jmpb": 2,
75+
"jnzf": 2,
76+
"jnzb": 2,
77+
"jnef": 2,
78+
"jneb": 2,
79+
"lb": 2,
80+
"log": 754,
81+
"lt": 2,
82+
"lw": 2,
83+
"mint": 35718,
84+
"mlog": 2,
85+
"mod": 2,
86+
"modi": 2,
87+
"move": 2,
88+
"movi": 2,
89+
"mroo": 5,
90+
"mul": 2,
91+
"muli": 2,
92+
"mldv": 4,
93+
"noop": 1,
94+
"not": 2,
95+
"or": 2,
96+
"ori": 2,
97+
"poph": 3,
98+
"popl": 3,
99+
"pshh": 4,
100+
"pshl": 4,
101+
"ret_contract": 733,
102+
"rvrt_contract": 722,
103+
"sb": 2,
104+
"sll": 2,
105+
"slli": 2,
106+
"srl": 2,
107+
"srli": 2,
108+
"srw": 253,
109+
"sub": 2,
110+
"subi": 2,
111+
"sw": 2,
112+
"sww": 29053,
113+
"time": 79,
114+
"tr": 46242,
115+
"tro": 33251,
116+
"wdcm": 3,
117+
"wqcm": 3,
118+
"wdop": 3,
119+
"wqop": 3,
120+
"wdml": 3,
121+
"wqml": 4,
122+
"wddv": 5,
123+
"wqdv": 7,
124+
"wdmd": 11,
125+
"wqmd": 18,
126+
"wdam": 9,
127+
"wqam": 12,
128+
"wdmm": 11,
129+
"wqmm": 11,
130+
"xor": 2,
131+
"xori": 2,
132+
"call": {
133+
"LightOperation": {
134+
"base": 21687,
135+
"units_per_gas": 4
136+
}
137+
},
138+
"ccp": {
139+
"LightOperation": {
140+
"base": 59,
141+
"units_per_gas": 20
142+
}
143+
},
144+
"croo": {
145+
"LightOperation": {
146+
"base": 1,
147+
"units_per_gas": 1
148+
}
149+
},
150+
"csiz": {
151+
"LightOperation": {
152+
"base": 59,
153+
"units_per_gas": 195
154+
}
155+
},
156+
"k256": {
157+
"LightOperation": {
158+
"base": 282,
159+
"units_per_gas": 3
160+
}
161+
},
162+
"ldc": {
163+
"LightOperation": {
164+
"base": 45,
165+
"units_per_gas": 65
166+
}
167+
},
168+
"logd": {
169+
"LightOperation": {
170+
"base": 1134,
171+
"units_per_gas": 2
172+
}
173+
},
174+
"mcl": {
175+
"LightOperation": {
176+
"base": 3,
177+
"units_per_gas": 523
178+
}
179+
},
180+
"mcli": {
181+
"LightOperation": {
182+
"base": 3,
183+
"units_per_gas": 526
184+
}
185+
},
186+
"mcp": {
187+
"LightOperation": {
188+
"base": 3,
189+
"units_per_gas": 448
190+
}
191+
},
192+
"mcpi": {
193+
"LightOperation": {
194+
"base": 7,
195+
"units_per_gas": 585
196+
}
197+
},
198+
"meq": {
199+
"LightOperation": {
200+
"base": 11,
201+
"units_per_gas": 1097
202+
}
203+
},
204+
"retd_contract": {
205+
"LightOperation": {
206+
"base": 1086,
207+
"units_per_gas": 2
208+
}
209+
},
210+
"s256": {
211+
"LightOperation": {
212+
"base": 45,
213+
"units_per_gas": 3
214+
}
215+
},
216+
"scwq": {
217+
"HeavyOperation": {
218+
"base": 30375,
219+
"gas_per_unit": 28628
220+
}
221+
},
222+
"smo": {
223+
"LightOperation": {
224+
"base": 64196,
225+
"units_per_gas": 1
226+
}
227+
},
228+
"srwq": {
229+
"HeavyOperation": {
230+
"base": 262,
231+
"gas_per_unit": 249
232+
}
233+
},
234+
"swwq": {
235+
"HeavyOperation": {
236+
"base": 28484,
237+
"gas_per_unit": 26613
238+
}
239+
},
240+
"contract_root": {
241+
"LightOperation": {
242+
"base": 45,
243+
"units_per_gas": 1
244+
}
245+
},
246+
"state_root": {
247+
"HeavyOperation": {
248+
"base": 350,
249+
"gas_per_unit": 176
250+
}
251+
},
252+
"new_storage_per_byte": 63,
253+
"vm_initialization": {
254+
"LightOperation": {
255+
"base": 1645,
256+
"units_per_gas": 14
257+
}
258+
}
259+
}
260+
},
261+
"base_asset_id": "0000000000000000000000000000000000000000000000000000000000000000",
262+
"block_gas_limit": 30000000,
263+
"privileged_address": "0000000000000000000000000000000000000000000000000000000000000000"
264+
}
265+
},
266+
"consensus": {
267+
"PoA": {
268+
"signing_key": "0xc8e615a4089466174459ef19cfd257d2e17adfabff3b8f219dbb5fb4eca87c50"
269+
}
270+
}
271+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"chain_config": "chain_config.json",
3+
"table_encoding": {
4+
"Json": {
5+
"filepath": "state_config.json"
6+
}
7+
}
8+
}

0 commit comments

Comments
 (0)