diff --git a/packages/shared/src/lib/auxiliary/blockscout/interfaces/blockscout-transaction.interface.ts b/packages/shared/src/lib/auxiliary/blockscout/interfaces/blockscout-transaction.interface.ts index 6d0eb2fa4a..ba931643d2 100644 --- a/packages/shared/src/lib/auxiliary/blockscout/interfaces/blockscout-transaction.interface.ts +++ b/packages/shared/src/lib/auxiliary/blockscout/interfaces/blockscout-transaction.interface.ts @@ -22,7 +22,7 @@ export interface IWatchlistName { interface IDecodedInput { method_call: string method_id: string - parameters: Record // IDecodedInputParameters + parameters: { name: string; type: string; value: unknown }[] // IDecodedInputParameters } interface ITokenTransfer { diff --git a/packages/shared/src/lib/core/activity/utils/evm/getSmartContractDataFromBlockscoutTransaction.ts b/packages/shared/src/lib/core/activity/utils/evm/getSmartContractDataFromBlockscoutTransaction.ts index 6222ee346e..af54e39d9d 100644 --- a/packages/shared/src/lib/core/activity/utils/evm/getSmartContractDataFromBlockscoutTransaction.ts +++ b/packages/shared/src/lib/core/activity/utils/evm/getSmartContractDataFromBlockscoutTransaction.ts @@ -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