From 70cef5396d9433dcc23021d9b6968495f33d3c01 Mon Sep 17 00:00:00 2001 From: samvel-vardanyan Date: Fri, 1 Sep 2023 10:22:29 +0400 Subject: [PATCH] small fix --- contract/pkg/cache/ddc_bucket_contract_cache.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/contract/pkg/cache/ddc_bucket_contract_cache.go b/contract/pkg/cache/ddc_bucket_contract_cache.go index 8af5f0d..3808ec5 100644 --- a/contract/pkg/cache/ddc_bucket_contract_cache.go +++ b/contract/pkg/cache/ddc_bucket_contract_cache.go @@ -686,14 +686,15 @@ func (d *ddcBucketContractCached) AccountWithdrawUnbonded() error { } func (d *ddcBucketContractCached) GetAccounts() ([]types.AccountID, error) { - return d.ddcBucketContract.GetAccounts() + accounts, err := d.ddcBucketContract.GetAccounts() + return accounts, err } func (d *ddcBucketContractCached) BucketCreate(bucketParams bucket.BucketParams, clusterId bucket.ClusterId, ownerId types.OptionAccountID) (bucketId bucket.BucketId, err error) { return d.ddcBucketContract.BucketCreate(bucketParams, clusterId, ownerId) } -func (d *ddcBucketContractCached) BucketChangeOwner(bucketId bucket.BucketId, ownerId types.AccountID) error { +func (d *ddcBucketContractCached) BucketChangeOwner(bucketId bucket.BucketId, ownerId types.OptionAccountID) error { return d.ddcBucketContract.BucketChangeOwner(bucketId, ownerId) }