Skip to content

Commit

Permalink
JS - 0.9.34, HF 27 updates
Browse files Browse the repository at this point in the history
  • Loading branch information
1aerostorm committed Jun 10, 2022
1 parent 4ae0469 commit 885a8ce
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion golos-lib-js/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "golos-lib-js",
"version": "0.9.33",
"version": "0.9.34",
"description": "Golos-js the JavaScript library with API for GOLOS blockchain",
"main": "lib/index.js",
"scripts": {
Expand Down
4 changes: 4 additions & 0 deletions golos-lib-js/src/auth/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,10 @@ Auth.loginAsync = function (name, password, callback) {
callback('No such account', null);
return;
}
if (res[0].frozen) {
callback('Account is frozen', null)
return
}
roles.slice(0, 3).map(role => {
let key_auths = res[0][role].key_auths;
for (let i = 0; i < key_auths.length; i++) {
Expand Down
10 changes: 9 additions & 1 deletion golos-lib-js/src/auth/serializer/src/operations.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,12 @@ const account_referral = new Serializer(
}
);

const interest_direction = new Serializer(
0, {
is_emission: bool
}
);

const transaction = new Serializer(
"transaction", {
ref_block_num: uint16,
Expand Down Expand Up @@ -951,7 +957,9 @@ let delegate_vesting_shares_with_interest = new Serializer(
delegatee: string,
vesting_shares: asset,
interest_rate: uint16,
extensions: set(future_extensions)
extensions: set(static_variant([
interest_direction
]))
}
);

Expand Down

0 comments on commit 885a8ce

Please sign in to comment.