[sozo] typscript bindings
Closed this issue · 2 comments
ponderingdemocritus commented
This is currently being included in the function output.
Type ClassHash
is not included.
We need to include the ClassHash
const upgrade = async (account: Account, newClassHash: ClassHash) => {
try {
return await provider.execute(
account,
{
contractName: "actions",
entryPoint: "upgrade",
calldata: [newClassHash],
}
);
} catch (error) {
console.error(error);
}
};
```
glihm commented
@MartianGreed was this solved in your latest PR?
MartianGreed commented
Yeah we decided to not include this function, as we surely won't upgrade from frontend