Skip to content

[toolkit] Contract deploy silently fails, toolkit deploy tx finalizes but contract is never created #1209

@adamreynolds-io

Description

@adamreynolds-io

Context & versions

  • Toolkit version: 0.22.0-rc.7
  • Network: qanet (spec 22000)

Steps to reproduce

  1. Generate a contract-simple deploy tx using toolkit 0.22.0-rc.7
  2. Extract the contract address from the generated .mn file
  3. Send the deploy tx — it gets included in a block and finalized successfully
  4. Attempt to call store on the deployed contract address

A reproduction script is available in the original ticket.

Actual behavior

The toolkit reports success since the Substrate extrinsic succeeds, but the Midnight ledger never created the contract. Subsequent calls fail with "Contract does not exist".

Expected behavior

After a deploy transaction finalizes, the contract should exist in ledger state and be callable.


Migrated from PM-22279

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions