Skip to content

Commit

Permalink
fix decoded input from blockscout
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkNerdi committed May 13, 2024
1 parent fd5e25a commit 67dc9a5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export interface IWatchlistName {
interface IDecodedInput {
method_call: string
method_id: string
parameters: Record<string, string> // IDecodedInputParameters
parameters: { name: string; type: string; value: unknown }[] // IDecodedInputParameters
}

interface ITokenTransfer {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,7 @@ export function getSmartContractDataFromBlockscoutTransaction(
// if decoded input is available we know the method and parameters and contract is verified
const { method_id, method_call, parameters } = blockscoutTransaction.decoded_input
method = blockscoutTransaction.method
inputs = Object.keys(parameters).map((key) => ({
name: key,
type: parameters[key],
value: undefined,
}))
inputs = parameters

if (!getMethodFromRegistry(HEX_PREFIX + method_id)) {
const fourBytePrefix = HEX_PREFIX + method_id
Expand Down

0 comments on commit 67dc9a5

Please sign in to comment.