File tree Expand file tree Collapse file tree 5 files changed +21
-5
lines changed Expand file tree Collapse file tree 5 files changed +21
-5
lines changed Original file line number Diff line number Diff line change 22
33## [ Unreleased] ( https://github.com/CosmWasm/wasmd/tree/HEAD )
44
5- [ Full Changelog] ( https://github.com/CosmWasm/wasmd/compare/v0.55.0...HEAD )
5+ [ Full Changelog] ( https://github.com/CosmWasm/wasmd/compare/v0.60.0...HEAD )
6+
7+ ## [ v0.60.0] ( https://github.com/CosmWasm/wasmd/tree/v0.60.0 ) (2025-05-26)
8+
9+ [ Full Changelog] ( https://github.com/CosmWasm/wasmd/compare/v0.55.0...v0.60.0 )
10+
11+ - Bump cosmos-sdk [ v0.53.0] ( https://github.com/CosmWasm/wasmd/pull/2250 )
12+ - Streamline Stargate/gRPC querier interfaces [ \# 2249] ( https://github.com/CosmWasm/wasmd/pull/2249 )
13+ - Use gas overflow error for ` ToWasmVMGas ` [ \# 2248] ( https://github.com/CosmWasm/wasmd/pull/2248 )
14+ - Make sure Aliases in DenomUnit is not nil [ \# 2246] ( https://github.com/CosmWasm/wasmd/pull/2246 )
15+ - Make validateAddress cheaper if canonicalization fails [ \# 2245] ( https://github.com/CosmWasm/wasmd/pull/2245 )
16+ - Lower ` DefaultMaxCallDepth ` [ \# 2244] ( https://github.com/CosmWasm/wasmd/pull/2244 )
617
718 - chore: Change port prefix for IBCv2 messages to "wasm2" [ \# 2229] ( https://github.com/CosmWasm/wasmd/pull/2229 )
819 - feat: IBCv2 timeout handler [ \# 2226] ( https://github.com/CosmWasm/wasmd/pull/2226 )
Original file line number Diff line number Diff line change @@ -519,6 +519,11 @@ var (
519519 const oogMsg = "out of gas"
520520 return expErrWithMsg (t , err , args , oogMsg )
521521 }
522+ // ErrMaxCallDepthMatcher requires error with "max call depth exceeded" message
523+ ErrMaxCallDepthMatcher RunErrorAssert = func (t assert.TestingT , err error , args ... interface {}) bool {
524+ const expMsg = "max call depth exceeded"
525+ return expErrWithMsg (t , err , args , expMsg )
526+ }
522527 // ErrTimeoutMatcher requires time out message
523528 ErrTimeoutMatcher RunErrorAssert = func (t assert.TestingT , err error , args ... interface {}) bool {
524529 const expMsg = "timed out waiting for tx to be included in a block"
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ func TestRecursiveMsgsExternalTrigger(t *testing.T) {
2929 }{
3030 "simulation" : {
3131 gas : "auto" ,
32- expErrMatcher : ErrOutOfGasMatcher ,
32+ expErrMatcher : ErrMaxCallDepthMatcher ,
3333 },
3434 }
3535 for name , spec := range specs {
Original file line number Diff line number Diff line change @@ -26,8 +26,10 @@ require (
2626require (
2727 cosmossdk.io/math v1.5.3
2828 github.com/cometbft/cometbft v0.38.17
29+ github.com/gogo/protobuf v1.3.2
2930 github.com/tidwall/gjson v1.14.2
3031 github.com/tidwall/sjson v1.2.5
32+ google.golang.org/protobuf v1.36.6
3133)
3234
3335require (
@@ -82,7 +84,6 @@ require (
8284 github.com/go-viper/mapstructure/v2 v2.2.1 // indirect
8385 github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2 // indirect
8486 github.com/gogo/googleapis v1.4.1 // indirect
85- github.com/gogo/protobuf v1.3.2 // indirect
8687 github.com/golang/glog v1.2.4 // indirect
8788 github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
8889 github.com/golang/snappy v0.0.4 // indirect
@@ -156,7 +157,6 @@ require (
156157 golang.org/x/text v0.24.0 // indirect
157158 google.golang.org/genproto/googleapis/api v0.0.0-20250324211829-b45e905df463 // indirect
158159 google.golang.org/genproto/googleapis/rpc v0.0.0-20250422160041-2d3770c4ea7f // indirect
159- google.golang.org/protobuf v1.36.6 // indirect
160160 gopkg.in/yaml.v3 v3.0.1 // indirect
161161 gotest.tools/v3 v3.5.2 // indirect
162162 nhooyr.io/websocket v1.8.6 // indirect
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import (
1010// DefaultMaxQueryStackSize maximum size of the stack of recursive queries a contract can make
1111const DefaultMaxQueryStackSize uint32 = 10
1212
13- const DefaultMaxCallDepth uint32 = 500
13+ const DefaultMaxCallDepth uint32 = 100
1414
1515// WasmEngine defines the WASM contract runtime engine.
1616type WasmEngine interface {
You can’t perform that action at this time.
0 commit comments