diff --git a/src/index.ts b/src/index.ts index 4ae02d0..d629df4 100644 --- a/src/index.ts +++ b/src/index.ts @@ -50,9 +50,9 @@ program .action(async function(amount: string) { const user = await createUser(config); // Always try to map accounts before depositing, just in case. - try { - await user.mapAccountsAsync(); - } catch (err) {} + console.log("mapping accs") + await user.mapAccountsAsync(); + console.log(await user.addressMapper!.getMappingAsync(user.loomAddress)) try { const tx = await user.depositAsync(new BN(amount).mul(coinMultiplier)); @@ -144,7 +144,7 @@ program validators.forEach(v => { console.log(" Pubkey:", CryptoUtils.Uint8ArrayToB64(v.pubKey)); console.log(" Address:", v.address.toString()); - console.log(" Slash percentage:", v.slashPct); + console.log(" Slash percentage:", v.slashPercentage); console.log(" Delegation total:", v.delegationTotal.toString()); console.log("\n"); }); diff --git a/yarn.lock b/yarn.lock index bd817f3..eb9baca 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5025,7 +5025,7 @@ log-update@^2.3.0: "loom-js@https://github.com/loomnetwork/loom-js#dist-dpos-v3": version "1.49.4" - resolved "https://github.com/loomnetwork/loom-js#840465d7b65a95886cc6e6b1d7c062e8b2fb435d" + resolved "https://github.com/loomnetwork/loom-js#8029eeb8009400c5f0f1a439e4c70c34efb4d6d7" dependencies: abi-decoder "^1.2.0" axios "^0.18.0"