Skip to content
This repository was archived by the owner on Apr 20, 2020. It is now read-only.

Commit c366f89

Browse files
authored
Merge pull request #184 from cryptape/develop
fix: fix abi bug
2 parents 63fe478 + ef5573a commit c366f89

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

src/containers/Footer/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class Footer extends React.Component<{ t: (key: string) => string }, any> {
2121
state = {
2222
overview: {
2323
title: '',
24-
content: 'Across the Microscope, we can reach any data in CITA',
24+
content: 'Microscope provides an easy-to-use user interface to inspect CITA.',
2525
},
2626
products: {
2727
title: 'technologies',

src/containers/Footer/styles.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ $col-span: 92px;
2727
display: flex;
2828
flex: 1;
2929
align-items: center;
30-
padding-right: $col-span;
30+
padding-right: 72px;
3131

3232
div {
3333
line-height: 2;

src/containers/Transaction/index.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,10 +156,9 @@ class Transaction extends React.Component<TransactionProps, ITransactionState> {
156156
const abis = JSON.parse(hexToUtf8(hexAbi))
157157
const fnHash = data.slice(0, 10)
158158
abis.forEach(_abi => {
159-
const _abiHash = abiCoder.encodeFunctionSignature(_abi.name)
160159
if (_abi.signature === fnHash) {
161160
const parameters = {}
162-
const p = abiCoder.decodeParameters(_abi.inputs, data.slice(10))
161+
const p = abiCoder.decodeParameters(_abi.inputs, `0x${data.slice(10)}`)
163162
Object.keys(p).forEach(key => {
164163
parameters[key] = p[key]
165164
})

0 commit comments

Comments
 (0)