Compare commits
9
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
95f400c9ca | ||
|
|
084772ab33 | ||
|
|
98140c6878 | ||
|
|
e576beed09 | ||
|
|
476659cc63 | ||
|
|
98537b2bd7 | ||
|
|
ffb2a49a94 | ||
|
|
e8e5e828d6 | ||
|
|
4b030575a8 |
@@ -64,9 +64,7 @@ class DydxChainTransactions implements AbacusDYDXChainTransactionsProtocol {
|
||||
|
||||
setNobleWallet(nobleWallet: LocalWallet) {
|
||||
this.nobleWallet = nobleWallet;
|
||||
if (this.nobleClient) {
|
||||
this.nobleClient.connect(nobleWallet);
|
||||
}
|
||||
this.nobleClient?.connect(nobleWallet);
|
||||
}
|
||||
|
||||
async connectNetwork(
|
||||
@@ -111,11 +109,8 @@ class DydxChainTransactions implements AbacusDYDXChainTransactionsProtocol {
|
||||
);
|
||||
|
||||
this.compositeClient = compositeClient;
|
||||
|
||||
if (nobleValidatorUrl) {
|
||||
this.nobleClient = new NobleClient(nobleValidatorUrl);
|
||||
if (this.nobleWallet) await this.nobleClient.connect(this.nobleWallet);
|
||||
}
|
||||
this.nobleClient = new NobleClient(nobleValidatorUrl);
|
||||
if (this.nobleWallet) await this.nobleClient.connect(this.nobleWallet);
|
||||
// Dispatch custom event to notify other parts of the app that the network has been connected
|
||||
const customEvent = new CustomEvent('abacus:connectNetwork', {
|
||||
detail: parsedParams,
|
||||
|
||||
Reference in New Issue
Block a user