drink icon indicating copy to clipboard operation
drink copied to clipboard

Failed to create transcoder from metadata file

Open JustAnotherDevv opened this issue 1 year ago • 3 comments

I've installed drink-cli and build command prints out warning:

warning: The cargo-contract is not compatible with the contract's ink! version. Please update the cargo-contract to version '3.2.0' or update the contract ink! to a version of '^5.0.0-alpha', '^5.0.0'

after that it's being executed correctly.

But when I try to use command deploy I get error: Failed to create transcoder from metadata file.

===My setup===

  • Ubuntu WSL
  • cargo-contract-contract 3.2.0-unknown-x86_64-unknown-linux-gnu
  • drink-cli 0.8.6

JustAnotherDevv avatar Jan 24 '24 23:01 JustAnotherDevv

When you install from main it expects that you're working with cargo-contract 4.X.Y

deuszx avatar Feb 24 '24 14:02 deuszx

When you install from main it expects that you're working with cargo-contract 4.X.Y

cargo-contract 4.X.Y seems to be only available in the prerelease for now, is there a way to use drink with cargo-contract V 3.X without adding that change myself?

JustAnotherDevv avatar Mar 08 '24 13:03 JustAnotherDevv

Try 0.8.7 - it was just fixed 2 days ago. 0.8.7 is still ink! 4 and [email protected].

deuszx avatar Mar 08 '24 14:03 deuszx