swanky-cli icon indicating copy to clipboard operation
swanky-cli copied to clipboard

[BUG] contract_name should not be reused in templates

Open midegdugarova opened this issue 2 years ago • 0 comments

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 avatar Jun 11 '23 12:06 midegdugarova