mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Fix transaction decoding data types string
and bool
(#17299)
* TransactionDecoding: support string type - fixes #16951 - fixes #16952 (string cut off) * TransactionDecoding: support bool type
This commit is contained in:
parent
cc518b918f
commit
149b5721ad
@ -129,11 +129,19 @@ export default function TransactionDecoding({ to = '', inputData: data = '' }) {
|
||||
</span>
|
||||
);
|
||||
|
||||
case 'bool':
|
||||
return <span className="sol-item">{String(value.asBoolean)}</span>;
|
||||
|
||||
case 'bytes':
|
||||
return (
|
||||
<span className="sol-item solidity-bytes">{value.asHex}</span>
|
||||
);
|
||||
|
||||
case 'string':
|
||||
return (
|
||||
<span className="sol-item solidity-string">{value.asString}</span>
|
||||
);
|
||||
|
||||
case 'array':
|
||||
return (
|
||||
<details>
|
||||
|
Loading…
x
Reference in New Issue
Block a user