Skip to content
Unverified Commit 73c89d30 authored by gupnik's avatar gupnik Committed by GitHub
Browse files

Introduces `TypeWithDefault<T, D: Get<T>>` (#4034)



Needed for: https://github.com/polkadot-fellows/runtimes/issues/248

This PR introduces a new type `TypeWithDefault<T, D: Get<T>>` to be able
to provide a custom default for any type. This can, then, be used to
provide the nonce type that returns the current block number as the
default, to avoid replay of immortal transactions.

---------

Co-authored-by: default avatarOliver Tale-Yazdi <[email protected]>
parent c0234bec
Pipeline #472440 passed with warnings with stages
in 1 hour, 13 minutes, and 44 seconds
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment