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
Finally, to actually update the contract on the chain, send the constructed `updateContractTransaction` to the chain using `sendAccountTransaction`. (See [Send Account Transaction](#Send-Account-Transaction) for how to do this)
668
668
669
+
## Deserialize contract state
670
+
The following example demonstrates how to deserialize a contract's state:
671
+
672
+
```js
673
+
constcontractName="my-contract-name"
674
+
constschema=Buffer.from(schemaSource); // Load schema from file
675
+
constrawContractState=Buffer.from(stateSource); // Could be getinstanceInfo(...).model
0 commit comments