Merge pull request #328 from meshplus/feat/stub-delete

feat(stub): add delete for blot stub
This commit is contained in:
Aiden X 2021-02-03 09:55:56 +08:00 committed by GitHub
commit 158b99afd0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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 {