CosmWasm / wasmd

Basic cosmos-sdk app with web assembly smart contracts
Other
364 stars 395 forks source link

[idea, unfinished] Add flattened msgResponses to SubMsgResponse #1800

Closed webmaster128 closed 6 months ago

webmaster128 commented 7 months ago

This is a proposal for how to fill the msg_responses vector in the SubMsgResponse for CosmWasm 2.0. It preserves the two dimensional loop for flexibility in wasmd (also debugging and stuff) and flattens the result for the contract since we only expect 1 element anyways in the vast majority of cases.

webmaster128 commented 6 months ago

Merged as part of https://github.com/CosmWasm/wasmd/pull/1804