swanky-cli
swanky-cli copied to clipboard
[BUG] contract_name should not be reused in templates
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"