1
0
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:
Ariella Vu 2023-01-20 20:31:26 +07:00 committed by GitHub
parent cc518b918f
commit 149b5721ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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>