diff --git a/CHANGELOG.md b/CHANGELOG.md index 39fc12767..65e1acd16 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,9 @@ Bugfixes: Chore: * [#551](https://github.com/bnb-chain/greenfield/pull/551) chore: fix typo and update doc +## v1.2.2 +This release introduces the Manchurian upgrade to the mainnet. + ## v1.2.1 This release fixes the bugs within resource tags. diff --git a/readme.md b/readme.md index 246480bb4..3fc7459ee 100644 --- a/readme.md +++ b/readme.md @@ -110,8 +110,8 @@ Refer to the [docs](https://docs.bnbchain.org/greenfield-docs/docs/guide/greenfi - [Interacting with the Node](https://docs.bnbchain.org/greenfield-docs/docs/guide/greenfield-blockchain/run-node/interact-node) - [Run Local Network](https://docs.bnbchain.org/greenfield-docs/docs/guide/greenfield-blockchain/run-node/run-local-network) -- [Run Testnet Node](https://docs.bnbchain.org/greenfield-docs/docs/guide/greenfield-blockchain/run-node/run-testnet-node) -- [Become Testnet Validator](https://docs.bnbchain.org/greenfield-docs/docs/guide/greenfield-blockchain/run-node/become-testnet-validator) +- [Run Node](https://docs.bnbchain.org/greenfield-docs/docs/guide/greenfield-blockchain/run-node) +- [Become Validator](https://docs.bnbchain.org/greenfield-docs/docs/guide/greenfield-blockchain/run-node/become-validator) ## Related Projects - [Greenfield-Contract](https://github.com/bnb-chain/greenfield-contracts): the cross chain contract for Greenfield that deployed on BSC network. diff --git a/x/permission/types/keys_test.go b/x/permission/types/keys_test.go index fdb4e0d09..9530f2599 100644 --- a/x/permission/types/keys_test.go +++ b/x/permission/types/keys_test.go @@ -14,10 +14,9 @@ import ( ) func TestParsePolicyIdFromQueueKey(t *testing.T) { - policyIds := []math.Uint{math.NewUint(rand.Uint64()), math.NewUint(rand.Uint64()), math.NewUint(rand.Uint64())} - - expiration := time.Now() - for _, policyId := range policyIds { + for i := 0; i < 100; i++ { + expiration := time.Now().Add(time.Duration(rand.Int63())) + policyId := math.NewUint(rand.Uint64()) key := PolicyPrefixQueue(&expiration, policyId.Bytes()) recoverId := ParsePolicyIdFromQueueKey(key) if !recoverId.Equal(policyId) { diff --git a/x/storage/types/crosschain.go b/x/storage/types/crosschain.go index f8eece7d0..5b1d3e95c 100644 --- a/x/storage/types/crosschain.go +++ b/x/storage/types/crosschain.go @@ -44,8 +44,8 @@ const ( OperationUpdateGroupMember uint8 = 4 // permission operation types - OperationCreatePolicy uint8 = 1 - OperationDeletePolicy uint8 = 2 + OperationCreatePolicy uint8 = 2 + OperationDeletePolicy uint8 = 3 ) func SafeBigInt(input *big.Int) *big.Int { diff --git a/x/storage/types/keys.go b/x/storage/types/keys.go index de9593a43..0c03063cf 100644 --- a/x/storage/types/keys.go +++ b/x/storage/types/keys.go @@ -63,8 +63,8 @@ var ( // GetBucketKey return the bucket name store key func GetBucketKey(bucketName string) []byte { - objectNameHash := sdk.Keccak256([]byte(bucketName)) - return append(BucketInfoPrefix, objectNameHash...) + bucketNameHash := sdk.Keccak256([]byte(bucketName)) + return append(BucketInfoPrefix, bucketNameHash...) } // GetObjectKey return the object name store key