Skip to content

Commit 279d8c8

Browse files
committed
make nonce_index u16
1 parent e9c8296 commit 279d8c8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

neps/nep-0611.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ As an alternative, we could use the [estimator](https://github.com/near/nearcore
209209
```rust
210210
enum TransactionNonce {
211211
Nonce { nonce: Nonce },
212-
GasKeyNonce { nonce: Nonce, nonce_index: u32 }
212+
GasKeyNonce { nonce: Nonce, nonce_index: u16 }
213213
}
214214
```
215215

@@ -354,7 +354,7 @@ Individual nonces are stored under the following `TrieKey` as `u64` values:
354354
GasKeyNonce {
355355
account_id: AccountId,
356356
public_key: PublicKey,
357-
nonce_index: u32
357+
nonce_index: u16
358358
} // also uses col::ACCESS_KEY
359359
```
360360

@@ -439,7 +439,7 @@ As an alternative, gas keys may be stored under a separate trie column using the
439439
GasKeyNonce {
440440
account_id: AccountId,
441441
public_key: PublicKey,
442-
nonce_index: Option<u32>
442+
nonce_index: Option<u16>
443443
} // uses new column col::GAS_KEY
444444
```
445445

0 commit comments

Comments
 (0)