Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error deploying contract with Hardhat #1605

Open
magecnion opened this issue Oct 4, 2024 · 1 comment
Open

Error deploying contract with Hardhat #1605

magecnion opened this issue Oct 4, 2024 · 1 comment
Assignees
Labels
B-Runtime [Bug] Some mistakes with the runtime logic P-High [Priority] High

Comments

@magecnion
Copy link

I'm trying to deploy a contract but I'm getting an error:

ProviderError: Create pending runtime api error: Failed to call runtime API, Execution failed: Execution aborted due to trap: wasm trap: wasm `unreachable` instruction executed
WASM backtrace:
error while executing at wasm backtrace:
    0: 0x585386 - <unknown>!rust_begin_unwind
    1: 0x1a646 - <unknown>!core::panicking::panic_fmt::h916104d5f54b6e68
    2: 0x20cfb - <unknown>!core::option::expect_failed::hd86ca5d4fb9d1ec9
    3: 0x484ff8 - <unknown>!<cumulus_pallet_parachain_system::pallet::Pallet<T> as frame_support::inherent::ProvideInherent>::create_inherent::h35a0fb4a0077b731
    4: 0x2d2c48 - <unknown>!<sp_inherents::InherentData as koi_runtime::InherentDataExt>::create_extrinsics::h704a5be8f56289aa
    5: 0x34d2e1 - <unknown>!BlockBuilder_inherent_extrinsics

I'm following the guide provided.

It fails on both the Koi and Crab networks. Note that for Crab, I don't even have any funds in the account. It looks like it fails before the deployment itself.

@hackfisher hackfisher added P-High [Priority] High B-Runtime [Bug] Some mistakes with the runtime logic labels Oct 4, 2024
@hujw77
Copy link
Contributor

hujw77 commented Oct 5, 2024

Deploying a contract with the latest version of hardhat requires the use of Hardhat Ignition, and the documentation needs to be synchronized and updated.
Please refer: https://hardhat.org/ignition/docs/guides/creating-modules

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
B-Runtime [Bug] Some mistakes with the runtime logic P-High [Priority] High
Projects
None yet
Development

No branches or pull requests

4 participants