Skip to content
This repository has been archived by the owner on Jan 17, 2022. It is now read-only.

wasm-check fails on ink! ERC20 example #168

Open
peblair opened this issue Sep 1, 2021 · 1 comment
Open

wasm-check fails on ink! ERC20 example #168

peblair opened this issue Sep 1, 2021 · 1 comment
Labels

Comments

@peblair
Copy link

peblair commented Sep 1, 2021

To reproduce, create a project with the ink! ERC20 sample code and then run the following:

$ cargo install pwasm-utils --features cli
$ cargo contract build
$ wasm-check target/ink/erc20.wasm
All imports should be from env

Looking through the substrate codebase, I believe that it is the wasm-check tool which is incorrect, as the sealN modules (which are what are being used for the imports) should be correct.

@athei athei added the bug label Sep 1, 2021
@athei
Copy link
Member

athei commented Sep 1, 2021

You are correct in your analyzes. Those CLI tools are somewhat lagging behind in features because all the internal users are using the crate directly. I was meaning to give them some love soon.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants