From c952f5ae93f12c70068bf5ba66ee3026f34f545f Mon Sep 17 00:00:00 2001 From: Roshan Date: Mon, 14 Aug 2023 14:19:53 +0800 Subject: [PATCH] fix test errors --- proto/greenfield/permission/params.proto | 2 +- x/bridge/keeper/genesis_test.go | 2 +- x/permission/types/params.pb.go | 14 ++++++-------- 3 files changed, 8 insertions(+), 10 deletions(-) diff --git a/proto/greenfield/permission/params.proto b/proto/greenfield/permission/params.proto index 46227bda6..8d58f9d50 100644 --- a/proto/greenfield/permission/params.proto +++ b/proto/greenfield/permission/params.proto @@ -14,5 +14,5 @@ message Params { // enforced, thereby reducing the chances of DDos and other security incidents. uint64 maximum_group_num = 2; // the maximum number of endblocker loops to execute - uint64 maximum_endblocker_loops = 18; + uint64 maximum_endblocker_loops = 3; } diff --git a/x/bridge/keeper/genesis_test.go b/x/bridge/keeper/genesis_test.go index 4bf996edf..dc54ae397 100644 --- a/x/bridge/keeper/genesis_test.go +++ b/x/bridge/keeper/genesis_test.go @@ -24,6 +24,6 @@ func (s *TestSuite) TestInitGenesis() { // Check that the genesis state was set correctly. params := k.GetParams(s.ctx) - s.Require().Equal(sdkmath.NewInt(250000000000000), params.BscTransferOutRelayerFee) + s.Require().Equal(sdkmath.NewInt(780000000000000), params.BscTransferOutRelayerFee) s.Require().Equal(sdkmath.NewInt(0), params.BscTransferOutAckRelayerFee) } diff --git a/x/permission/types/params.pb.go b/x/permission/types/params.pb.go index 8b5a97b6a..21507b0c4 100644 --- a/x/permission/types/params.pb.go +++ b/x/permission/types/params.pb.go @@ -32,7 +32,7 @@ type Params struct { // enforced, thereby reducing the chances of DDos and other security incidents. MaximumGroupNum uint64 `protobuf:"varint,2,opt,name=maximum_group_num,json=maximumGroupNum,proto3" json:"maximum_group_num,omitempty"` // the maximum number of endblocker loops to execute - MaximumEndblockerLoops uint64 `protobuf:"varint,18,opt,name=maximum_endblocker_loops,json=maximumEndblockerLoops,proto3" json:"maximum_endblocker_loops,omitempty"` + MaximumEndblockerLoops uint64 `protobuf:"varint,3,opt,name=maximum_endblocker_loops,json=maximumEndblockerLoops,proto3" json:"maximum_endblocker_loops,omitempty"` } func (m *Params) Reset() { *m = Params{} } @@ -109,12 +109,12 @@ var fileDescriptor_819487f28ea0fa75 = []byte{ 0x92, 0x7e, 0xa5, 0xb9, 0x42, 0x5a, 0x5c, 0x82, 0x30, 0x5d, 0xe9, 0x45, 0xf9, 0xa5, 0x05, 0x60, 0x0d, 0x4c, 0x60, 0x0d, 0xfc, 0x50, 0x09, 0x77, 0x90, 0x38, 0x48, 0xad, 0x05, 0x97, 0x04, 0x4c, 0x6d, 0x6a, 0x5e, 0x4a, 0x52, 0x4e, 0x7e, 0x72, 0x76, 0x6a, 0x51, 0x7c, 0x4e, 0x7e, 0x7e, 0x41, - 0xb1, 0x84, 0x10, 0x58, 0x0b, 0xcc, 0x05, 0xae, 0x70, 0x69, 0x1f, 0x90, 0xac, 0x93, 0xcf, 0x89, + 0xb1, 0x04, 0x33, 0x58, 0x0b, 0xcc, 0x05, 0xae, 0x70, 0x69, 0x1f, 0x90, 0xac, 0x93, 0xcf, 0x89, 0x47, 0x72, 0x8c, 0x17, 0x1e, 0xc9, 0x31, 0x3e, 0x78, 0x24, 0xc7, 0x38, 0xe1, 0xb1, 0x1c, 0xc3, 0x85, 0xc7, 0x72, 0x0c, 0x37, 0x1e, 0xcb, 0x31, 0x44, 0x19, 0xa5, 0x67, 0x96, 0x64, 0x94, 0x26, 0xe9, 0x25, 0xe7, 0xe7, 0xea, 0x27, 0xe5, 0x25, 0xe9, 0x26, 0x67, 0x24, 0x66, 0xe6, 0xe9, 0x23, 0x05, 0x53, 0x05, 0x72, 0x40, 0x95, 0x54, 0x16, 0xa4, 0x16, 0x27, 0xb1, 0x81, 0xfd, 0x6e, 0x0c, - 0x08, 0x00, 0x00, 0xff, 0xff, 0x6b, 0x9b, 0x7b, 0xc3, 0x4e, 0x01, 0x00, 0x00, + 0x08, 0x00, 0x00, 0xff, 0xff, 0xbc, 0x84, 0x34, 0x6a, 0x4e, 0x01, 0x00, 0x00, } func (m *Params) Marshal() (dAtA []byte, err error) { @@ -140,9 +140,7 @@ func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error) { if m.MaximumEndblockerLoops != 0 { i = encodeVarintParams(dAtA, i, uint64(m.MaximumEndblockerLoops)) i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x90 + dAtA[i] = 0x18 } if m.MaximumGroupNum != 0 { i = encodeVarintParams(dAtA, i, uint64(m.MaximumGroupNum)) @@ -181,7 +179,7 @@ func (m *Params) Size() (n int) { n += 1 + sovParams(uint64(m.MaximumGroupNum)) } if m.MaximumEndblockerLoops != 0 { - n += 2 + sovParams(uint64(m.MaximumEndblockerLoops)) + n += 1 + sovParams(uint64(m.MaximumEndblockerLoops)) } return n } @@ -259,7 +257,7 @@ func (m *Params) Unmarshal(dAtA []byte) error { break } } - case 18: + case 3: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field MaximumEndblockerLoops", wireType) }