Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] contract_name should not be reused in templates #176

Open
midegdugarova opened this issue Jun 11, 2023 · 0 comments
Open

[BUG] contract_name should not be reused in templates #176

midegdugarova opened this issue Jun 11, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@midegdugarova
Copy link
Contributor

midegdugarova commented Jun 11, 2023

Description

https://github.com/AstarNetwork/swanky-cli/blob/9d5e528c613e912896e8bb670fd2482285af3502/src/templates/contracts/flipper/test/index.test.ts.hbs#L3

Tests generate erroneous path. the variable contract_name does not take into account the register, and you have to change the path manually in index.test.js

`
import MyflipperFactory from "../../typedContracts/Myflipper/constructors/Myflipper";
import Myflipper from "../../typedContracts/Myflipper/contracts/Myflipper";

`
the last location should be "myflipper"

@midegdugarova midegdugarova added the bug Something isn't working label Jun 11, 2023
@midegdugarova midegdugarova changed the title [BUG] [BUG] contract_name should not be reused in templates Jun 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant