bnb-chain / greenfield

Greenfield is a decentralized storage platform.
GNU Affero General Public License v3.0
118 stars 49 forks source link

fix: principal value supports group name #626

Closed BarryTong65 closed 4 months ago

BarryTong65 commented 4 months ago

Description

fix: principal value supports group name comments

Rationale

The user discovered that the current cross-chain process does not support creating a group and binding it to a bucket/object through a multi-message in a single transaction. This is because they believed that the principal value only supports a group ID, not a group name.

However, this is actually supported, but it requires a specific naming convention to be followed. The format should be: grn:g:ownerAddress:groupName. We will update the corresponding principal value comment to support group names, to prevent any misunderstanding by developers in the future.

Example

Go-SDK

image

BSC Testnet transaction https://testnet.bscscan.com/tx/0xc983b0ef02796a9e0b6f3a7eb13fc2fbfe22895ba17fbd8a54f7becff8b2d183

Greenfield image image

Changes

Notable changes:

Potential Impacts

N/A