Mismatch in ABI Metadata Version for Ink! v6 (Generates Version 5 Instead of 6) · Issue #2505 · use-ink/ink · GitHub
More Web Proxy on the site http://driver.im/
You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reported by @sinzii while working on support for Dedot in ink! v6.
According to the documentation https://use.ink/docs/v6/basics/metadata/ink/#version, the generated metadata should use ABI version 6. However, when creating a new contract using the current toolchain, the generated flipper.json metadata still reports version 5.
Steps to Reproduce:
Run cargo contract new flipper
Run cargo contract build --release
Open the generated target/ink/flipper.json, the metadata shows "version": 5
Uh oh!
There was an error while loading. Please reload this page.
Reported by @sinzii while working on support for Dedot in ink! v6.
According to the documentation https://use.ink/docs/v6/basics/metadata/ink/#version, the generated metadata should use ABI version 6. However, when creating a new contract using the current toolchain, the generated
flipper.json
metadata still reports version 5.Steps to Reproduce:
cargo contract new flipper
cargo contract build --release
target/ink/flipper.json
, the metadata shows"version": 5
Proposed Fix
After investigation, it appears the cause is in the https://github.com/use-ink/ink/blob/master/crates/metadata/src/lib.rs#L76, where the constant:
likely needs to be updated to:
Should I go ahead and submit a PR with this change? Or am I missing something else?
@davidsemakula Would appreciate any clarification before proceeding.
The text was updated successfully, but these errors were encountered: