Skip to content

[HF 7 -> 8] Unexpected error deserializing ledger contract state from bytes (memory access out of bounds) #1210

@adamreynolds-io

Description

@adamreynolds-io

Context & versions

  • Contract compiled with compact 0.28
  • Contract deployed with node version 0.21
  • Node upgraded to 0.22 with runtime upgrade to spec 22000
  • Toolkit version: 0.22
  • Network: devnet

Steps to reproduce

  1. Deploy test_perf_runtime_limits using 0.28 compact contracts on devnet using node 0.21
  2. Upgrade node to 0.22 and perform a runtime upgrade to 22000
  3. Try to call the contract with a fresh toolkit 0.22

Actual behavior

The toolkit throws:

Unexpected error deserializing ledger contract state from bytes (memory access out of bounds)

Expected behavior

Contracts deployed before a hard fork (HF 7 -> 8) should remain callable after the runtime upgrade.


Migrated from PM-22255

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions