Limit address inputs based on keyring type (#8925)
This commit is contained in:
parent
e328d15c76
commit
fa569250e3
@ -60,7 +60,7 @@ const MULTI_DEFAULT: string[] = [];
|
||||
|
||||
function transformToAddress (value?: string | Uint8Array | null): string | null {
|
||||
try {
|
||||
return toAddress(value) || null;
|
||||
return toAddress(value, false, keyring.keyring.type === 'ethereum' ? 20 : 32) || null;
|
||||
} catch (error) {
|
||||
// noop, handled by return
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user