Skip to content

Commit 930fd51

Browse files
committed
Add nonce row to runtime account details
1 parent e3666c6 commit 930fd51

File tree

4 files changed

+8
-0
lines changed

4 files changed

+8
-0
lines changed

.changelog/2427.trivial.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add nonce row to runtime account details

src/app/components/Account/RuntimeAccountDetailsView.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,9 @@ export const RuntimeAccountDetailsView: FC<RuntimeAccountDetailsViewProps> = ({
152152
</>
153153
)}
154154

155+
<dt>{t('common.nonce')}</dt>
156+
<dd>{account.nonce ? account.nonce : t('common.missing')}</dd>
157+
155158
<dt>{t('common.transactions')}</dt>
156159
<dd>
157160
{account.stats.num_txns ? (

src/app/utils/test-fixtures.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ export const sapphireParsedBlock: BlockResult = {
2727

2828
export const suggestedParsedAccount: RuntimeAccount = groupAccountTokenBalances({
2929
address: 'oasis1qrvha284gfztn7wwq6z50c86ceu28jp7csqhpx9t',
30+
nonce: 1,
3031
address_preimage: {
3132
address_data: 'ulBIGP3Y09ui74/ZtPTVxxrR0dM=',
3233
context: 'oasis-runtime-sdk/address: secp256k1eth',
@@ -65,6 +66,7 @@ export const suggestedParsedAccount: RuntimeAccount = groupAccountTokenBalances(
6566

6667
export const suggestedEmptyAccount: RuntimeAccount = groupAccountTokenBalances({
6768
address: 'oasis1qz64azk6qr5nzq537l5cgpd4uxltrhpkhqdx5tqy',
69+
nonce: 1,
6870
address_preimage: undefined,
6971
address_eth: undefined,
7072
balances: [],

src/oasis-nexus/generated/api.ts

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

0 commit comments

Comments
 (0)