Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
constructor() {
// HttpProvider is used to communicate with http.
this.provider = new HttpProvider(MockData.NODE_URL);
// Create IconService instance
this.iconService = new IconService(this.provider);
// Load wallet
this.wallet = IconWallet.loadPrivateKey(MockData.PRIVATE_KEY_1);
this.txHash = '';
this.addListener();
(async () => {
try {
await this.getWalletBalance();
} catch(e) {
console.log(e);
}
})();
constructor() {
// HttpProvider is used to communicate with http.
this.provider = new HttpProvider(MockData.NODE_URL);
// Create IconService instance
this.iconService = new IconService(this.provider);
// Load wallet
this.wallet = IconWallet.loadPrivateKey(MockData.PRIVATE_KEY_1);
this.deployTxHash = '';
this.transactionTxHash = '';
this.content = '';
this.scoreAddress = '';
this.addListener();
}
constructor() {
// HttpProvider is used to communicate with http.
this.provider = new HttpProvider(MockData.NODE_URL);
// Create IconService instance
this.iconService = new IconService(this.provider);
this.timer;
this.prevHeight = null;
this.addListener();
}