Skip to content

HIP-1056 Contract initcode should include constructor parameters #12308

@xin-hedera

Description

@xin-hedera

Description

In recordstream contract bytecode sidecar, when a smart contract is created with initcode from a file, the initcode in the sidecar transaction record is: hexDecode(file content) | constructor parameters.

The blockstream transformation logic is missing the appending constructor parameters part so it causes differential testing failures.

It's also suspectable that the existing parser logic (in ContractCreateTransactionHandler) when initcode is in the transaction body shares the same problem though research is needed.

Steps to reproduce

Run differential testing tool for contracts created with initcode in a file.

Additional context

No response

Hedera network

testnet

Version

v0.142.0-SNAPSHOT

Operating system

None

Metadata

Metadata

Assignees

Labels

bugType: Something isn't workingimporterArea: Importer

Type

Projects

Status

👷 In progress

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions