Skip to content

Conversation

@wangjingcun
Copy link

Changes

The intention here should be to initialize a slice with a capacity of len(ref) rather than initializing the length of this slice.

The online demo: https://go.dev/play/p/q1BcVCmvidW

Fixes

fix slice init length

Tests

Tasks to complete before merging PR:

  • Ensure system tests are passing. If not Run them manually to check for any regressions 📋
  • Do any new system tests need added to test this change? do any existing system tests need updated? If so create a PR at 0chain/system_test
  • Merge your system tests PR to master AFTER merging this PR

Associated PRs (Link as appropriate):

  • blobber:
  • 0chain:
  • system_test:
  • zboxcli:
  • zwalletcli:
  • Other: ...

@wangjingcun
Copy link
Author

@guruhubb Hi, Could you please review this PR at your convenience? Thank you very much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant