forked from TrueCloudLab/frostfs-contract
parent
4585f96acf
commit
cfecb093a0
2 changed files with 1 additions and 10 deletions
|
@ -105,10 +105,6 @@ func index(ctx storage.Context) int {
|
||||||
return storage.Get(ctx, indexKey).(int)
|
return storage.Get(ctx, indexKey).(int)
|
||||||
}
|
}
|
||||||
|
|
||||||
func total(ctx storage.Context) int {
|
|
||||||
return storage.Get(ctx, totalKey).(int)
|
|
||||||
}
|
|
||||||
|
|
||||||
func checkPermission(ir []common.IRNode) bool {
|
func checkPermission(ir []common.IRNode) bool {
|
||||||
ctx := storage.GetReadOnlyContext()
|
ctx := storage.GetReadOnlyContext()
|
||||||
index := index(ctx) // read from contract memory
|
index := index(ctx) // read from contract memory
|
||||||
|
|
|
@ -43,12 +43,7 @@ const (
|
||||||
notaryDisabledKey = "notary"
|
notaryDisabledKey = "notary"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var token Token
|
||||||
lockTransferMsg = []byte("lock assets to withdraw")
|
|
||||||
unlockTransferMsg = []byte("asset lock expired")
|
|
||||||
|
|
||||||
token Token
|
|
||||||
)
|
|
||||||
|
|
||||||
// CreateToken initializes the Token Interface for the Smart Contract to operate with.
|
// CreateToken initializes the Token Interface for the Smart Contract to operate with.
|
||||||
func CreateToken() Token {
|
func CreateToken() Token {
|
||||||
|
|
Loading…
Reference in a new issue