CosmWasm / sylvia

CosmWasm smart contract framework
Apache License 2.0
93 stars 14 forks source link

Figure out a way to print names of intersecting messages in const context. #40

Open jawoznia opened 2 years ago

jawoznia commented 2 years ago

Currently in verify_no_collissions we will call panic!("Message overlaps between interface and contract impl!"); in case of intersection between two or more messages. This is not helpful enough and it would be best to print duplicated messages name.

Unfortunately because it all happens in const fn we can't just call format! and concatenate two strings.

Below example compiles and could be a way to workaround this. panic!("{}", msgs[i][outer_i]); Maybe there is a way to print message before panicking explaining what is causing compilation to fail.

jawoznia commented 2 years ago

This is a follow up issue to #8