You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
'The Trust provider does not allow rpc calls preventing Onboard.js from getting the balance. You can pass in a "rpcUrl" to the imToken wallet initialization object to get the balance.'
50
-
)
51
-
warned=true
52
-
}
53
-
54
-
returnnull
33
+
interface: isTrust
34
+
? {
35
+
address: {
36
+
get: ()=>getAddress(trustProvider)
37
+
},
38
+
network: {
39
+
get: ()=>getNetwork(trustProvider)
40
+
},
41
+
balance: {
42
+
get: async()=>{
43
+
if(!provider){
44
+
if(!warned){
45
+
console.warn(
46
+
'The Trust provider does not allow rpc calls preventing Onboard.js from getting the balance. You can pass in a "rpcUrl" to the imToken wallet initialization object to get the balance.'
0 commit comments