Skip to content

Commit c7d99c4

Browse files
authored
Merge pull request #108 from tinymanorg/fix/governance-global-state-parser
Governance - Give params in correct order while initializing `VaultAppGlobalState`
2 parents 880b31b + 4e523a1 commit c7d99c4

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

dist/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@tinymanorg/tinyman-js-sdk",
3-
"version": "5.0.1",
3+
"version": "5.0.2",
44
"description": "Tinyman JS SDK",
55
"author": "Tinyman Core Team",
66
"license": "MIT",

src/governance/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,10 +200,10 @@ class TinymanGovernanceClient {
200200
const data = await getGlobalState(this.algodClient, VAULT_APP_ID[this.network]);
201201

202202
return new VaultAppGlobalState(
203-
data.tiny_asset_id,
204203
data.total_locked_amount,
205204
data.total_power_count,
206-
data.last_total_power_timestamp
205+
data.last_total_power_timestamp,
206+
data.tiny_asset_id
207207
);
208208
} catch (error: any) {
209209
console.error(error);

0 commit comments

Comments
 (0)