cli: add tests for contract command

This commit is contained in:
Evgenii Stratonikov 2020-12-03 14:57:45 +03:00
parent bb316f4652
commit 573d1d10c0
4 changed files with 167 additions and 11 deletions

View file

@ -17,6 +17,11 @@ func _deploy(isUpdate bool) {
storage.Put(ctx, key, value)
}
// Fail just fails.
func Fail() {
panic("as expected")
}
// Update updates contract with the new one.
func Update(script, manifest []byte) {
contract.Update(script, manifest)