Skip to content

Commit

Permalink
update testnet code
Browse files Browse the repository at this point in the history
  • Loading branch information
hoank101 committed Apr 4, 2024
1 parent e368076 commit 6b0aad6
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 3 deletions.
28 changes: 26 additions & 2 deletions app/upgrades/v7_0_1/upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,33 @@ func CreateUpgradeHandler(
fmt.Println("start v7.0.1 upgrade")
ctx := sdk.UnwrapSDKContext(goCtx)
store := runtime.NewKVStoreService(keepers.GetKVStoreKey()[types.StoreKey]).OpenKVStore(ctx)
checksumStr, err := hex.DecodeString("58c7623a3ab78f4cb2e4c5d02876ac36c3b38bb472118173a7ec7faa688a66d2")

checksum := types.Checksums{Checksums: [][]byte{checksumStr}}
// list code in testnet
listCode := []string{
"58c7623a3ab78f4cb2e4c5d02876ac36c3b38bb472118173a7ec7faa688a66d2", // local key
"13ef83deb0dd1140f2e171aa72abbedee604e5903c4fb2a99da8bb13eda4dfb1",
"1cff60adf40895b5fccb1e9ce6305a65ae01400a02cc4ded2cf3669221905adc",
"24d21d60aa3bc4e84ddf21493ad1ada891a9af527def252edbba277ee7f05276",
"292a4db6c6ea2cd0cc9852b4313bfc8c3727de5762f46552b59a7df8a33f14b2",
"391add0fb14814296d134709797e697043c297841b23b14077bcaa09d67e7957",
"8efc525173fb23ca7d62e9d6bd0a1ee98fd8f3e2374ae1ea8bb59a3ccdf34295",
"936c3a1931746f9471d7088b236445979aabfe3af5378cdca67a032f5c4e4ed0",
"9636e7c7e357280260d6db81df78ec78226c746239636cc0e42e5e306ab8e199",
"b2adbd22fc3c410e781baeba5a655a0f0f6a009705ffe02b128ae6b4eabe3cf8",
"d2e8126bc2226fb57e4fa8462da2a3441c3bead05c1161e848c944f99d9119ab",
"ee97c9bd49a83282c2be1cd8cef0f2f55feb6d2d4c63ec3d27d69c252bd78531",
"ef52ef690dc5ec88fd4dd78dc8fd7582904492284b0c290a12ef343d8a541056",
"fccfde77e9318b1316e545a34414b5fc3e6cf82a5fe432815b956153c2e655bc"}
listCheckSum := [][]byte{}
for _, code := range listCode {
checksumStr, err := hex.DecodeString(code)
if err != nil {
panic(err)
}
listCheckSum = append(listCheckSum, checksumStr)
}

checksum := types.Checksums{Checksums: listCheckSum}
bz, err := codec.Marshal(&checksum)
if err != nil {
panic(err)
Expand Down
4 changes: 3 additions & 1 deletion tests/interchaintest/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@ github.com/Microsoft/go-winio v0.6.0/go.mod h1:cTAf44im0RAYeL23bpB+fzCyDH2MJiz2B
github.com/Nvveen/Gotty v0.0.0-20120604004816-cd527374f1e5 h1:TngWCqHvy9oXAN6lEVMRuU21PR1EtLVZJmdB18Gu3Rw=
github.com/OneOfOne/xxhash v1.2.2 h1:KMrpdQIwFcEqXDklaen+P1axHaj9BSKzvpUUfnHldSE=
github.com/OneOfOne/xxhash v1.2.2/go.mod h1:HSdplMjZKSmBqAxg5vPj2TmRDmfkzw+cTzAElWljhcU=
github.com/Shopify/sarama v1.19.0/go.mod h1:FVkBWblsNy7DGZRfXLU0O9RCGt5g3g3yEuWXgklEdEo=
github.com/Shopify/sarama v1.20.0/go.mod h1:FVkBWblsNy7DGZRfXLU0O9RCGt5g3g3yEuWXgklEdEo=
github.com/Shopify/toxiproxy v2.1.4+incompatible/go.mod h1:OXgGpZ6Cli1/URJOF1DMxUHB2q5Ap20/P/eIdh4G0pI=
github.com/StackExchange/wmi v0.0.0-20180116203802-5d049714c4a6 h1:fLjPD/aNc3UIOA6tDi6QXUemppXK3P9BI7mr2hd6gx8=
Expand Down Expand Up @@ -839,6 +840,7 @@ github.com/onsi/gomega v1.4.3/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1Cpa
github.com/onsi/gomega v1.7.1/go.mod h1:XdKZgCCFLUoM/7CFJVPcG8C1xQ1AJ0vpAezJrB7JYyY=
github.com/onsi/gomega v1.10.1/go.mod h1:iN09h71vgCQne3DLsj+A5owkum+a2tYe+TOCB1ybHNo=
github.com/onsi/gomega v1.17.0/go.mod h1:HnhC7FXeEQY45zxNK3PPoIUhzk/80Xly9PcubAlGdZY=
github.com/onsi/gomega v1.19.0/go.mod h1:LY+I3pBVzYsTBU1AnDwOSxaYi9WoWiqgwooUqq9yPro=
github.com/onsi/gomega v1.20.0/go.mod h1:LY+I3pBVzYsTBU1AnDwOSxaYi9WoWiqgwooUqq9yPro=
github.com/onsi/gomega v1.27.4 h1:Z2AnStgsdSayCMDiCU42qIz+HLqEPcgiOCXjAU/w+8E=
github.com/onsi/gomega v1.27.4/go.mod h1:riYq/GJKh8hhoM01HN6Vmuy93AarCXCBGpvFDK3q3fQ=
Expand Down Expand Up @@ -1597,7 +1599,7 @@ google.golang.org/genproto v0.0.0-20221025140454-527a21cfbd71/go.mod h1:9qHF0xnp
google.golang.org/genproto v0.0.0-20230301171018-9ab4bdc49ad5 h1:/cadn7taPtPlCgiWNetEPsle7jgnlad2R7gR5MXB6dM=
google.golang.org/genproto v0.0.0-20230301171018-9ab4bdc49ad5/go.mod h1:TvhZT5f700eVlTNwND1xoEZQeWTB2RY/65kplwl/bFA=
google.golang.org/grpc v1.17.0/go.mod h1:6QZJwpn2B+Zp71q/5VxRsJ6NXXVCE5NRUHRo+f3cWCs=
google.golang.org/grpc v1.20.0/go.mod h1:chYK+tFQF0nDUGJgXMSgLCQk3phJEuONr2DCgLDdAQM=
google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c=
google.golang.org/grpc v1.20.0/go.mod h1:chYK+tFQF0nDUGJgXMSgLCQk3phJEuONr2DCgLDdAQM=
google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38=
google.golang.org/grpc v1.21.0/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM=
Expand Down

0 comments on commit 6b0aad6

Please sign in to comment.