Merge pull request #328 from meshplus/feat/stub-delete
feat(stub): add delete for blot stub
This commit is contained in:
commit
158b99afd0
|
@ -51,7 +51,7 @@ func (b *BoltStubImpl) Get(key string) (bool, []byte) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (b *BoltStubImpl) Delete(key string) {
|
func (b *BoltStubImpl) Delete(key string) {
|
||||||
|
b.ctx.Ledger.SetState(b.ctx.Callee, []byte(key), nil)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (b *BoltStubImpl) GetObject(key string, ret interface{}) bool {
|
func (b *BoltStubImpl) GetObject(key string, ret interface{}) bool {
|
||||||
|
|
Loading…
Reference in New Issue