inkdevhub / swanky-cli

The all-in-one developer environment for Parity pallet-contracts based smart contracts!
https://docs.astar.network/docs/build/wasm/swanky-suite/cli/
MIT License
70 stars 29 forks source link

[BUG] swanky contract compile throws Error if no contract name specified #128

Closed andabak closed 1 year ago

andabak commented 1 year ago

Description

I have run the command within a flipper generated project folder (only one contract inside) and I get the error Error: Cannot find contract info for undefined contract in swanky.config.json

Expected vs. Actual Behavior

Based on release notes for Swanky CLI v2.1.0 command swanky contract compile invoked in project folder without naming the contract should compile all contracts in the folder.

Steps to Reproduce + Environment + Logs, Errors or Screenshots

Output of commands can be seen in the screenshot attached:

  swanky contract compile
  swanky --version
  swanky check
  swanky contract compile
  swanky contract compile flipper

image

andabak commented 1 year ago

Created this PR to perhaps alleviate the unclear part - https://github.com/AstarNetwork/swanky-cli/pull/129

shunsukew commented 1 year ago

As explained here https://github.com/AstarNetwork/swanky-cli/pull/129#discussion_r1140154837 Close this issue.