You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 1, 2023. It is now read-only.
Recompiling a contract with altered code will sometimes return an invalid json. This occurs when a variable is removed in an already-compiled contract.
Steps to reproduce
#[contract]
mod Contract {
#[external]
fn foo() {
let bar = 5;
}
}
Compile the contract above
Remove/comment out the bar variable and compile again and look the the json output. This is appended to the end of the object: