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

Commit

Permalink
Merge pull request #184 from cryptape/develop
Browse files Browse the repository at this point in the history
fix: fix abi bug
  • Loading branch information
Keith-CY authored Apr 24, 2019
2 parents 63fe478 + ef5573a commit c366f89
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/containers/Footer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class Footer extends React.Component<{ t: (key: string) => string }, any> {
state = {
overview: {
title: '',
content: 'Across the Microscope, we can reach any data in CITA',
content: 'Microscope provides an easy-to-use user interface to inspect CITA.',
},
products: {
title: 'technologies',
Expand Down
2 changes: 1 addition & 1 deletion src/containers/Footer/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ $col-span: 92px;
display: flex;
flex: 1;
align-items: center;
padding-right: $col-span;
padding-right: 72px;

div {
line-height: 2;
Expand Down
3 changes: 1 addition & 2 deletions src/containers/Transaction/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -156,10 +156,9 @@ class Transaction extends React.Component<TransactionProps, ITransactionState> {
const abis = JSON.parse(hexToUtf8(hexAbi))
const fnHash = data.slice(0, 10)
abis.forEach(_abi => {
const _abiHash = abiCoder.encodeFunctionSignature(_abi.name)
if (_abi.signature === fnHash) {
const parameters = {}
const p = abiCoder.decodeParameters(_abi.inputs, data.slice(10))
const p = abiCoder.decodeParameters(_abi.inputs, `0x${data.slice(10)}`)
Object.keys(p).forEach(key => {
parameters[key] = p[key]
})
Expand Down

0 comments on commit c366f89

Please sign in to comment.