Skip to content

Commit 3411d9b

Browse files
authored
Merge pull request #279 from CosmWasm/upgrade-cosmwasm
Upgrade to cosmwasm 1.0.0-beta3
2 parents e6cdf54 + a3b39ce commit 3411d9b

File tree

9 files changed

+354
-225
lines changed

9 files changed

+354
-225
lines changed

api/lib_test.go

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ func TestGetMetrics(t *testing.T) {
208208
assert.Equal(t, &types.Metrics{
209209
HitsFsCache: 1,
210210
ElementsMemoryCache: 1,
211-
SizeMemoryCache: 5558401,
211+
SizeMemoryCache: 5576140,
212212
}, metrics)
213213

214214
// Instantiate 2
@@ -223,7 +223,7 @@ func TestGetMetrics(t *testing.T) {
223223
HitsMemoryCache: 1,
224224
HitsFsCache: 1,
225225
ElementsMemoryCache: 1,
226-
SizeMemoryCache: 5558401,
226+
SizeMemoryCache: 5576140,
227227
}, metrics)
228228

229229
// Pin
@@ -238,8 +238,8 @@ func TestGetMetrics(t *testing.T) {
238238
HitsFsCache: 1,
239239
ElementsPinnedMemoryCache: 1,
240240
ElementsMemoryCache: 1,
241-
SizePinnedMemoryCache: 5558401,
242-
SizeMemoryCache: 5558401,
241+
SizePinnedMemoryCache: 5576140,
242+
SizeMemoryCache: 5576140,
243243
}, metrics)
244244

245245
// Instantiate 3
@@ -256,8 +256,8 @@ func TestGetMetrics(t *testing.T) {
256256
HitsFsCache: 1,
257257
ElementsPinnedMemoryCache: 1,
258258
ElementsMemoryCache: 1,
259-
SizePinnedMemoryCache: 5558401,
260-
SizeMemoryCache: 5558401,
259+
SizePinnedMemoryCache: 5576140,
260+
SizeMemoryCache: 5576140,
261261
}, metrics)
262262

263263
// Unpin
@@ -274,7 +274,7 @@ func TestGetMetrics(t *testing.T) {
274274
ElementsPinnedMemoryCache: 0,
275275
ElementsMemoryCache: 1,
276276
SizePinnedMemoryCache: 0,
277-
SizeMemoryCache: 5558401,
277+
SizeMemoryCache: 5576140,
278278
}, metrics)
279279

280280
// Instantiate 4
@@ -292,7 +292,7 @@ func TestGetMetrics(t *testing.T) {
292292
ElementsPinnedMemoryCache: 0,
293293
ElementsMemoryCache: 1,
294294
SizePinnedMemoryCache: 0,
295-
SizeMemoryCache: 5558401,
295+
SizeMemoryCache: 5576140,
296296
}, metrics)
297297
}
298298

@@ -855,7 +855,7 @@ func TestQuery(t *testing.T) {
855855
var badResp types.QueryResponse
856856
err = json.Unmarshal(data, &badResp)
857857
require.NoError(t, err)
858-
require.Equal(t, "Error parsing into type hackatom::msg::QueryMsg: unknown variant `Raw`, expected one of `verifier`, `other_balance`, `recurse`", badResp.Err)
858+
require.Contains(t, badResp.Err, "Error parsing into type hackatom::msg::QueryMsg: unknown variant `Raw`, expected one of")
859859

860860
// make a valid query
861861
gasMeter3 := NewMockGasMeter(TESTING_GAS_LIMIT)

api/testdata/hackatom.wasm

1.37 KB
Binary file not shown.

api/testdata/ibc_reflect.wasm

213 Bytes
Binary file not shown.

api/testdata/queue.wasm

0 Bytes
Binary file not shown.

api/testdata/reflect.wasm

0 Bytes
Binary file not shown.

lib_test.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ func TestGetMetrics(t *testing.T) {
133133
assert.Equal(t, &types.Metrics{
134134
HitsFsCache: 1,
135135
ElementsMemoryCache: 1,
136-
SizeMemoryCache: 5558401,
136+
SizeMemoryCache: 5576140,
137137
}, metrics)
138138

139139
// Instantiate 2
@@ -149,7 +149,7 @@ func TestGetMetrics(t *testing.T) {
149149
HitsMemoryCache: 1,
150150
HitsFsCache: 1,
151151
ElementsMemoryCache: 1,
152-
SizeMemoryCache: 5558401,
152+
SizeMemoryCache: 5576140,
153153
}, metrics)
154154

155155
// Pin
@@ -164,8 +164,8 @@ func TestGetMetrics(t *testing.T) {
164164
HitsFsCache: 1,
165165
ElementsPinnedMemoryCache: 1,
166166
ElementsMemoryCache: 1,
167-
SizePinnedMemoryCache: 5558401,
168-
SizeMemoryCache: 5558401,
167+
SizePinnedMemoryCache: 5576140,
168+
SizeMemoryCache: 5576140,
169169
}, metrics)
170170

171171
// Instantiate 3
@@ -183,8 +183,8 @@ func TestGetMetrics(t *testing.T) {
183183
HitsFsCache: 1,
184184
ElementsPinnedMemoryCache: 1,
185185
ElementsMemoryCache: 1,
186-
SizePinnedMemoryCache: 5558401,
187-
SizeMemoryCache: 5558401,
186+
SizePinnedMemoryCache: 5576140,
187+
SizeMemoryCache: 5576140,
188188
}, metrics)
189189

190190
// Unpin
@@ -201,7 +201,7 @@ func TestGetMetrics(t *testing.T) {
201201
ElementsPinnedMemoryCache: 0,
202202
ElementsMemoryCache: 1,
203203
SizePinnedMemoryCache: 0,
204-
SizeMemoryCache: 5558401,
204+
SizeMemoryCache: 5576140,
205205
}, metrics)
206206

207207
// Instantiate 4
@@ -220,6 +220,6 @@ func TestGetMetrics(t *testing.T) {
220220
ElementsPinnedMemoryCache: 0,
221221
ElementsMemoryCache: 1,
222222
SizePinnedMemoryCache: 0,
223-
SizeMemoryCache: 5558401,
223+
SizeMemoryCache: 5576140,
224224
}, metrics)
225225
}

0 commit comments

Comments
 (0)