Merge pull request #550 from CosmWasm/increase-default-wasm-size

Multiply default wasm size by 2
This commit is contained in:
Alexander Peters
2021-07-05 11:00:24 +02:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -16,7 +16,7 @@ const (
// DefaultParamspace for params keeper
DefaultParamspace = ModuleName
// DefaultMaxWasmCodeSize limit max bytes read to prevent gzip bombs
DefaultMaxWasmCodeSize = 600 * 1024
DefaultMaxWasmCodeSize = 600 * 1024 * 2
)
var ParamStoreKeyUploadAccess = []byte("uploadAccess")

View File

@@ -168,7 +168,7 @@ func TestParamsUnmarshalJson(t *testing.T) {
"defaults": {
src: `{"code_upload_access": {"permission": "Everybody"},
"instantiate_default_permission": "Everybody",
"max_wasm_code_size": 614400}`,
"max_wasm_code_size": 1228800}`,
exp: DefaultParams(),
},
}