cli: add tests for contract
command
This commit is contained in:
parent
bb316f4652
commit
573d1d10c0
4 changed files with 167 additions and 11 deletions
5
cli/testdata/deploy/main.go
vendored
5
cli/testdata/deploy/main.go
vendored
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue