I am writing a backend canister smart contract in Typescript using Azle. I recently ran into an issue where I updated the type of a parameter that I passed into a function, generated new service files, deployed, and upon running the function on my Candid UI, I was getting an error that I was still using the previous type. Similar to this:
Candid decode error: “type mismatch: type on int32 but expected int8
I attempted to resolve this error by deleting .azle and .dfx but to no avail.
In order to resolve this error, I had to create completely new canisters.
Is this a known issue? Perhaps the canister is saving a cache somewhere?