[#2442] English Check
Signed-off-by: Elizaveta Chichindaeva <elizaveta@nspcc.ru>
This commit is contained in:
parent
7f8b259994
commit
28908aa3cf
293 changed files with 2222 additions and 2224 deletions
6
cli/testdata/deploy/main.go
vendored
6
cli/testdata/deploy/main.go
vendored
|
@ -48,14 +48,14 @@ func CheckSenderWitness() {
|
|||
}
|
||||
}
|
||||
|
||||
// Update updates contract with the new one.
|
||||
// Update updates the contract with a new one.
|
||||
func Update(script, manifest []byte) {
|
||||
ctx := storage.GetReadOnlyContext()
|
||||
mgmt := storage.Get(ctx, mgmtKey).(interop.Hash160)
|
||||
contract.Call(mgmt, "update", contract.All, script, manifest)
|
||||
}
|
||||
|
||||
// GetValue returns stored value.
|
||||
// GetValue returns the stored value.
|
||||
func GetValue() string {
|
||||
ctx := storage.GetReadOnlyContext()
|
||||
val1 := storage.Get(ctx, key)
|
||||
|
@ -63,7 +63,7 @@ func GetValue() string {
|
|||
return val1.(string) + "|" + val2.(string)
|
||||
}
|
||||
|
||||
// GetValueWithKey returns stored value with the specified key.
|
||||
// GetValueWithKey returns the stored value with the specified key.
|
||||
func GetValueWithKey(key string) string {
|
||||
ctx := storage.GetReadOnlyContext()
|
||||
return storage.Get(ctx, key).(string)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue