diff --git a/internal/fakechain/fakechain.go b/internal/fakechain/fakechain.go index 4c559c040..c781cbe59 100644 --- a/internal/fakechain/fakechain.go +++ b/internal/fakechain/fakechain.go @@ -325,11 +325,6 @@ func (chain *FakeChain) GetTestVM(t trigger.Type, tx *transaction.Transaction, b panic("TODO") } -// GetStorageItems implements Blockchainer interface. -func (chain *FakeChain) GetStorageItems(id int32) ([]state.StorageItemWithKey, error) { - panic("TODO") -} - // CurrentHeaderHash implements Blockchainer interface. func (chain *FakeChain) CurrentHeaderHash() util.Uint256 { return util.Uint256{} diff --git a/pkg/core/blockchain.go b/pkg/core/blockchain.go index 3694d0459..261317820 100644 --- a/pkg/core/blockchain.go +++ b/pkg/core/blockchain.go @@ -1589,11 +1589,6 @@ func (bc *Blockchain) GetStorageItem(id int32, key []byte) state.StorageItem { return bc.dao.GetStorageItem(id, key) } -// GetStorageItems returns all storage items for a given contract id. -func (bc *Blockchain) GetStorageItems(id int32) ([]state.StorageItemWithKey, error) { - return bc.dao.GetStorageItems(id) -} - // GetBlock returns a Block by the given hash. func (bc *Blockchain) GetBlock(hash util.Uint256) (*block.Block, error) { topBlock := bc.topBlock.Load() diff --git a/pkg/core/blockchainer/blockchainer.go b/pkg/core/blockchainer/blockchainer.go index a6e20e48e..f5179245f 100644 --- a/pkg/core/blockchainer/blockchainer.go +++ b/pkg/core/blockchainer/blockchainer.go @@ -59,7 +59,6 @@ type Blockchainer interface { GetValidators() ([]*keys.PublicKey, error) GetStateModule() StateRoot GetStorageItem(id int32, key []byte) state.StorageItem - GetStorageItems(id int32) ([]state.StorageItemWithKey, error) GetTestVM(t trigger.Type, tx *transaction.Transaction, b *block.Block) *interop.Context GetTransaction(util.Uint256) (*transaction.Transaction, uint32, error) SetOracle(service services.Oracle)