Add and dedupe EthereumAddress (#4118)

* Add and dedupe EthereumAddress

* Override for Polkadot claims
This commit is contained in:
Jaco
2021-10-26 15:40:58 +03:00
committed by GitHub
parent c9ee8d9942
commit 6afea5043e
3 changed files with 3 additions and 1 deletions
@@ -36,6 +36,8 @@ const PATHS_PRIMITIVE = splitNamespace([
'sp_core::crypto::AccountId32',
'sp_runtime::generic::era::Era',
'sp_runtime::multiaddress::MultiAddress',
// ethereum overrides
'polkadot_runtime_common::claims::EthereumAddress',
// shorten some well-known types
'primitive_types::*',
'sp_arithmetic::per_things::*',
@@ -9,7 +9,6 @@ import type { Definitions } from '../../types';
export default {
rpc: {},
types: {
EthereumAddress: 'H160',
StatementKind: {
_enum: ['Regular', 'Saft']
}
@@ -89,6 +89,7 @@ const types: DefinitionsTypes = {
...V1,
...V2,
EthereumAccountId: 'GenericEthereumAccountId',
EthereumAddress: 'GenericEthereumAccountId',
EthereumLookupSource: 'GenericEthereumLookupSource',
EthereumSignature: '[u8; 65]',
EthAccessListItem: {