dojoengine/dojo

[sozo] typscript bindings

Closed this issue · 2 comments

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);
		}
	};
	```

@MartianGreed was this solved in your latest PR?

Yeah we decided to not include this function, as we surely won't upgrade from frontend