Compare commits

..
Author SHA1 Message Date
Bill He 95f400c9ca fix loading button 2023-12-01 15:10:18 -08:00
Bill He 084772ab33 fix error 2023-12-01 15:10:18 -08:00
Bill He 98140c6878 Bump abacus 2023-12-01 15:10:18 -08:00
Bill He e576beed09 cctp.json 2023-12-01 15:10:18 -08:00
Bill He 476659cc63 bump packages 2023-12-01 15:10:16 -08:00
Bill He 98537b2bd7 update isCctp, and comments 2023-12-01 15:09:45 -08:00
Bill He ffb2a49a94 fix fees 2023-12-01 15:09:45 -08:00
Bill He e8e5e828d6 slippage 2023-12-01 15:09:45 -08:00
Bill He 4b030575a8 Support CCTP and noble auto deposits on testnet 2023-12-01 15:09:45 -08:00
+3 -8
View File
@@ -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,