Skip to content

Commit

Permalink
Bump node-sdk + minimum ledger version + fix target in account balance
Browse files Browse the repository at this point in the history
  • Loading branch information
Hjort committed May 2, 2022
1 parent 2627d29 commit 2a03c3b
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion app/constants/ledgerConstants.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"requiredVersion": "2.1.0"
"requiredVersion": "3.0.0"
}
8 changes: 4 additions & 4 deletions app/pages/Accounts/AccountBalanceView/AccountBalanceView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ function ShieldedInfo({

const getDelegationTargetId = (dt: DelegationTarget) =>
dt.delegateType === DelegationTargetType.Baker
? `baker pool ${dt.bakerId}`
: 'passive delegation';
? `Delegation to baker pool ${dt.bakerId}`
: 'Passive delegation';

interface PublicInfoProps {
accountInfo: AccountInfo | undefined;
Expand Down Expand Up @@ -100,9 +100,9 @@ function PublicInfo({ accountInfo }: PublicInfoProps) {
{accountBaker !== undefined &&
`Stake with baker ${accountBaker.bakerId}`}
{accountDelegation !== undefined &&
`Delegation to ${getDelegationTargetId(
getDelegationTargetId(
accountDelegation.delegationTarget
)}`}
)}
</Label>
<span className="body2 textBlue mono">
{displayAsCcd(staked)}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@
"yargs": "^17.1.1"
},
"dependencies": {
"@concordium/node-sdk": "^0.8.0-alpha.2",
"@concordium/node-sdk": "^0.8.0-alpha.3",
"@grpc/grpc-js": "^1.3.6",
"@hot-loader/react-dom": "^16.13.0",
"@reduxjs/toolkit": "^1.4.0",
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2020,10 +2020,10 @@
exec-sh "^0.3.2"
minimist "^1.2.0"

"@concordium/node-sdk@^0.8.0-alpha.0":
version "0.8.0-alpha.0"
resolved "https://registry.yarnpkg.com/@concordium/node-sdk/-/node-sdk-0.8.0-alpha.0.tgz#bc6effea9fffeea01e64c0b564538886d6959266"
integrity sha512-ISJTib0Cd2k9+HieXuLXFcpbz/ZA8iXgzbk/i4wp9jMj9EuF8C85Zkfed56e4v4lb4UWB/HR3feG5WcOhrJxrw==
"@concordium/node-sdk@^0.8.0-alpha.3":
version "0.8.0-alpha.3"
resolved "https://registry.yarnpkg.com/@concordium/node-sdk/-/node-sdk-0.8.0-alpha.3.tgz#ef4da5292534147e0bc37cc782019a4447661e7d"
integrity sha512-QR9uJIAUj1ow66HgBWFxPHsVmb109BL6ULQu9tvUHYTY8crUPOcj6T6JWEds6RUB3LULz/95IknCVhM4C9Bt+g==
dependencies:
"@grpc/grpc-js" "^1.3.4"
bs58check "^2.1.2"
Expand Down

0 comments on commit 2a03c3b

Please sign in to comment.