Skip to content

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

@midegdugarova

Description

@midegdugarova

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"

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions