dfinity / sdk

IC SDK: a Software Development Kit for creating and managing canister smart contracts on the ICP blockchain.

Home Page:https://internetcomputer.org/developers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FIX ME special opt rule hit!

ByronBecker opened this issue · comments

Just hit this message when deploying to a canister. I was purposely changing the type signature of my API (breaking change), and hit this message instead of signaling a dfx deploy warning.

FIX ME! vec record { text; AttributeValue } <: opt UserMetadata/1 via special opt rule.
This means the sender and receiver type has diverged, and can cause data loss.

When do you see this warning? During dfx deploy? It probably make sense to make this an error and ask the user the confirm. But this is likely an dfx issue, not a Motoko issue.

Yes, I see this during DFX deploy