Skip to content

Commit

Permalink
update to latest loom-js
Browse files Browse the repository at this point in the history
  • Loading branch information
gakonst committed Apr 18, 2019
1 parent ba748f0 commit ba7af0d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down Expand Up @@ -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");
});
Expand Down
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit ba7af0d

Please sign in to comment.