Skip to content

Commit 23e7ae9

Browse files
Merge pull request #115 from oraichain/feat/release-v0.50.9
Feat/release v0.50.9
2 parents aae9144 + dfa28bc commit 23e7ae9

33 files changed

+108
-68
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
- fix payable bug for solidity
2+
([\#111](https://github.com/oraichain/wasmd/pull/111))
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
- fix double consume gas when execute precompile contract
2+
([\#114](https://github.com/oraichain/wasmd/pull/114))
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
- implement precise bank to support aorai fees
2+
([\#105](https://github.com/oraichain/wasmd/pull/105))
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
- update cosmos-sdk dependency
2+
([\#110](https://github.com/oraichain/wasmd/pull/110))
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
- support mapping evm cosmos address using pubkey only
2+
([\#113](https://github.com/oraichain/wasmd/pull/113))
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
- implement precompile to interact with evm contract
2+
([\#79](https://github.com/oraichain/wasmd/pull/79))
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
- support dynamics fees for chain
2+
([\#85](https://github.com/oraichain/wasmd/pull/85))

.changelog/v0.50.9/summary.md

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<!--
2+
Add a summary for the release here.
3+
4+
If you don't change this message, or if this file is empty, the release
5+
will not be created. -->
6+
7+
Upgrade Oraichain mainnet to v0.50.9 to upgrade cosmos-sdk dependency, add dynamic fees, precise-bank module, implement evm mapping using pubkey only, precompile module to support full ERC20 flow and fix payable solidity, evm gas simulate bugs.

CHANGELOG_ORAI.md

+20-3
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,34 @@
11
# CHANGELOG
22

3-
## v0.50.8
3+
## v0.50.9
44

55
<!--
66
Add a summary for the release here.
77
88
If you don't change this message, or if this file is empty, the release
99
will not be created. -->
10-
Upgrade Oraichain mainnet to v0.50.8 to fix gasless contract bug out of gas when execute gasless contract.
10+
11+
Upgrade Oraichain mainnet to v0.50.9 to upgrade cosmos-sdk dependency, add dynamic fees, precise-bank module, implement evm mapping using pubkey only, precompile module to support full ERC20 flow and fix payable solidity, evm gas simulate bugs.
1112

1213
### BUG FIXES
1314

14-
- Fix gasless contract out of gas ([\#80](https://github.com/oraichain/wasmd/pull/80))
15+
- fix double consume gas when execute precompile contract
16+
([\#114](https://github.com/oraichain/wasmd/pull/114))
17+
- fix payable bug for solidity
18+
([\#111](https://github.com/oraichain/wasmd/pull/111))
19+
20+
### IMPROVEMENTS
21+
22+
- implement precise bank to support aorai fees
23+
([\#105](https://github.com/oraichain/wasmd/pull/105))
24+
- implement precompile to interact with evm contract
25+
([\#79](https://github.com/oraichain/wasmd/pull/79))
26+
- support dynamics fees for chain
27+
([\#85](https://github.com/oraichain/wasmd/pull/85))
28+
- support mapping evm cosmos address using pubkey only
29+
([\#113](https://github.com/oraichain/wasmd/pull/113))
30+
- update cosmos-sdk dependency
31+
([\#110](https://github.com/oraichain/wasmd/pull/110))
1532

1633
## v0.50.7
1734

app/upgrades/v0509/upgrades.go

+1-8
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import (
1111
txfeestypes "github.com/CosmWasm/wasmd/x/txfees/types"
1212

1313
"github.com/cosmos/cosmos-sdk/codec"
14-
sdk "github.com/cosmos/cosmos-sdk/types"
1514
"github.com/cosmos/cosmos-sdk/types/module"
1615
)
1716

@@ -26,7 +25,7 @@ var Upgrade = upgrades.Upgrade{
2625
UpgradeName: UpgradeName,
2726
CreateUpgradeHandler: CreateUpgradeHandler,
2827
StoreUpgrades: storetypes.StoreUpgrades{
29-
Added: []string{precisebanktypes.StoreKey, txfeestypes.ModuleName},
28+
Added: []string{precisebanktypes.StoreKey, txfeestypes.StoreKey},
3029
Deleted: []string{},
3130
},
3231
}
@@ -39,12 +38,6 @@ func CreateUpgradeHandler(
3938
cdc codec.BinaryCodec,
4039
) upgradetypes.UpgradeHandler {
4140
return func(ctx context.Context, plan upgradetypes.Plan, fromVM module.VersionMap) (module.VersionMap, error) {
42-
sdkCtx := sdk.UnwrapSDKContext(ctx)
43-
44-
// set params
45-
ak.TxFeesKeeper.SetParams(sdkCtx, txfeestypes.DefaultParams())
46-
ak.TxFeesKeeper.AddAllowedToken(sdkCtx, USDAI)
47-
4841
return mm.RunMigrations(ctx, configurator, fromVM)
4942
}
5043
}

scripts/e2e-upgrade.sh

+9-5
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ fi
2929
cd ../orai-old
3030
git fetch
3131
git checkout $OLD_VERSION
32-
go mod tidy && GOTOOLCHAIN=$GO_VERSION make install
32+
go mod tidy && GOTOOLCHAIN=$GO_VERSION make build
3333

3434
cd $current_dir
3535

@@ -39,7 +39,7 @@ sh $PWD/scripts/multinode-local-testnet.sh
3939
sleep 5
4040

4141
# create new upgrade proposal
42-
UPGRADE_HEIGHT=${UPGRADE_HEIGHT:-35}
42+
UPGRADE_HEIGHT=${UPGRADE_HEIGHT:-40}
4343

4444
VERSION=$NEW_VERSION HEIGHT=$UPGRADE_HEIGHT bash $PWD/scripts/proposal-script.sh
4545

@@ -59,15 +59,15 @@ pkill oraid
5959

6060
# install new binary for the upgrade
6161
echo "install new binary"
62-
GOTOOLCHAIN=$GO_VERSION make install
62+
GOTOOLCHAIN=$GO_VERSION make build
6363

6464
# Back to current folder
6565
cd $current_dir
6666

6767
# re-run all validators. All should run
6868
screen -S validator1 -d -m oraid start --home=$HOME/.oraid/validator1
6969
screen -S validator2 -d -m oraid start --home=$HOME/.oraid/validator2
70-
screen -S validator3 -d -m oraid start --home=$HOME/.oraid/validator3
70+
screen -S validator2 -d -m oraid start --home=$HOME/.oraid/validator3
7171

7272
# sleep a bit for the network to start
7373
echo "Sleep to wait for the network to start..."
@@ -153,11 +153,15 @@ NODE_HOME=$VALIDATOR_HOME USER=validator1 FUND=1000orai sh $PWD/scripts/tests-0.
153153
USER=validator1 USER2=validator2 sh $PWD/scripts/tests-0.50.3/test-gasless.sh
154154

155155
# v0.50.4 tests
156-
NODE_HOME=$VALIDATOR_HOME USER=validator1 FUND=1000orai sh $PWD/scripts/tests-0.50.4/test-tokenfactory-force-transfer.sh
156+
NODE_HOME=$VALIDATOR_HOME USER=validator1 sh $PWD/scripts/tests-0.50.4/test-tokenfactory-force-transfer.sh
157157

158158
# we don't need this test anymore since we are using precisebank. We actually need a test for precisebank
159159
# # v0.50.6 tests
160160
# NODE_HOME=$VALIDATOR_HOME USER=validator1 sh $PWD/scripts/tests-0.50.6/test-cw20-erc20-not-mint-aorai.sh
161161

162+
# v0.50.9 tests
163+
NODE_HOME=$VALIDATOR_HOME USER=validator1 sh $PWD/scripts/tests-0.50.9/test-txfees.sh
164+
sh $PWD/scripts/tests-0.50.9/test-payable-with-bank-send.sh
165+
162166
echo "E2E Upgrade Tests Passed!!"
163167
bash scripts/clean-multinode-local-testnet.sh

scripts/json/clock-proposal.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"authority": "orai10d07y265gmmuvt4z0w9aw880jnsr700jf39xhq",
66
"params": {
77
"contract_addresses": [
8-
""
8+
"orai14hj2tavq8fpesdwxxcu44rty3hh90vhujrvcmstl4zr3txmfvw9savsjyw"
99
],
1010
"contract_gas_limit": "10000000"
1111
}

scripts/json/proposal.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@
66
"plan": {
77
"name": "v0.50.9",
88
"time": "0001-01-01T00:00:00Z",
9-
"height": "35",
9+
"height": "40",
1010
"info": "upgrade info",
1111
"upgraded_client_state": null
1212
}
1313
}
1414
],
1515
"metadata": "",
1616
"deposit": "10000000orai",
17-
"title": "Upgrade Oraichain to v0.50.7",
18-
"summary": "Please refer to the CHANGELOG: https://github.com/oraichain/wasmd/blob/release/v0.50.x/CHANGELOG_ORAI.md#v0507 for more details about the upgrade",
17+
"title": "Upgrade Oraichain to v0.50.9",
18+
"summary": "Please refer to the CHANGELOG: https://github.com/oraichain/wasmd/blob/release/v0.50.x/CHANGELOG_ORAI.md#v0509 for more details about the upgrade",
1919
"expedited": false
2020
}

scripts/json/txfees-add-fee-proposal.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{
44
"@type": "/cosmwasm.txfees.v1.MsgAddFeeToken",
55
"authority": "orai10d07y265gmmuvt4z0w9aw880jnsr700jf39xhq",
6-
"denom": "factory/orai1r3n94y6vm8e0evd65pmysaa72g7kkg7smw4733/usdai"
6+
"denom": "factory/orai18ypxjr58s4aay9jrdg9msyy9348pej40gzfa7s/usdai"
77
}
88
],
99
"metadata": "foobar",

scripts/json/txfees-params-proposal.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"authority": "orai10d07y265gmmuvt4z0w9aw880jnsr700jf39xhq",
66
"params": {
77
"token_base_denom": "orai",
8-
"price_contract_address": "orai1nc5tatafv6eyq7llkr2gv50ff9e22mnf70qgjlv737ktmt4eswrq3e4sxg"
8+
"price_contract_address": "orai10qt8wg0n7z740ssvf3urmvgtjhxpyp74hxqvqt7z226gykuus7eqm5emex"
99
}
1010
}
1111
],

scripts/proposal-script.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/sh
2-
set -ux
2+
set -eu
33

4-
VERSION=${VERSION:-"v0.50.5"}
4+
VERSION=${VERSION:-"v0.50.9"}
55
HEIGHT=${HEIGHT:-200}
66
VALIDATOR1_HOME=${VALIDATOR1_HOME:-"$HOME/.oraid/validator1"}
77
VALIDATOR1_ARGS="--from validator1 --chain-id testing -y --keyring-backend test --home $VALIDATOR1_HOME --fees 2orai -b sync"

scripts/test_clock_counter_contract.sh

+4-4
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
# sh $PWD/scripts/multinode-local-testnet.sh
44
# cw-clock-example.wasm source code: https://github.com/oraichain/cw-plus.git
55

6-
set -ux
6+
set -eu
77

88
WASM_PATH=${WASM_PATH:-"$PWD/scripts/wasm_file/cw-clock-example.wasm"}
9-
ARGS="--chain-id testing -y --keyring-backend test --gas auto --gas-adjustment 1.5 -b sync"
9+
ARGS="--chain-id testing -y --keyring-backend test --gas auto --gas-adjustment 1.5 --fees 1000orai -b sync"
1010
VALIDATOR1_ARGS=${VALIDATOR1_ARGS:-"--from validator1 --home $HOME/.oraid/validator1"}
1111
VALIDATOR2_ARGS=${VALIDATOR2_ARGS:-"--from validator2 --home $HOME/.oraid/validator2"}
1212
QUERY_MSG=${QUERY_MSG:-'{"get_config":{}}'}
@@ -25,7 +25,7 @@ sleep 5
2525
# need to use temp.json since there's a weird error: jq: parse error: Invalid string: control characters from U+0000 through U+001F must be escaped at line 1, column 72291
2626
# probably because of weird characters from the raw code bytes
2727
oraid query tx $store_txhash --output json > temp.json
28-
code_id=$(cat temp.json | jq -r '.events[4].attributes[] | select(.key | contains("code_id")).value')
28+
code_id=$(cat temp.json | jq -r '.events[] | select(.type == "store_code") | .attributes[] | select(.key == "code_id") | .value')
2929
rm temp.json
3030
oraid tx wasm instantiate $code_id '{}' --label 'cw clock contract' $VALIDATOR1_ARGS --admin $(oraid keys show validator1 --keyring-backend test --home $HOME/.oraid/validator1 -a) $ARGS > $HIDE_LOGS
3131
# need to sleep 1s for tx already in block
@@ -48,7 +48,7 @@ store_ret=$(oraid tx gov submit-proposal $CLOCK_PROPOSAL_FILE $VALIDATOR1_ARGS $
4848
store_txhash=$(echo $store_ret | jq -r '.txhash')
4949
# sleep 2s before vote to wait for tx confirm
5050
sleep 2
51-
proposal_id=$(oraid query tx $store_txhash --output json | jq -r '.events[4].attributes[] | select(.key | contains("proposal_id")).value')
51+
proposal_id=$(oraid query tx $store_txhash --output json | jq -r '.events[] | select(.type == "submit_proposal") | .attributes[] | select(.key == "proposal_id")| .value')
5252

5353
oraid tx gov vote $proposal_id yes $VALIDATOR1_ARGS $ARGS > $HIDE_LOGS && oraid tx gov vote $proposal_id yes $VALIDATOR2_ARGS $ARGS > $HIDE_LOGS
5454

scripts/tests-0.42.1/test-evm-cosmos-mapping-complex.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ set -eu
55
CHAIN_ID=${CHAIN_ID:-testing}
66
USER=${USER:-tupt}
77
NODE_HOME=${NODE_HOME:-"$PWD/.oraid"}
8-
ARGS="--from $USER --chain-id $CHAIN_ID -y --keyring-backend test --gas auto --gas-adjustment 1.5 -b sync --home $NODE_HOME"
8+
ARGS="--from $USER --chain-id $CHAIN_ID -y --keyring-backend test --gas auto --gas-adjustment 1.5 --fees 10000orai -b sync --home $NODE_HOME"
99
HIDE_LOGS="/dev/null"
1010

1111
user_address=$(oraid keys show $USER --home $NODE_HOME --keyring-backend test -a)

scripts/tests-0.42.1/test-evm-cosmos-mapping.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ set -eu
55
CHAIN_ID=${CHAIN_ID:-testing}
66
USER=${USER:-tupt}
77
NODE_HOME=${NODE_HOME:-"$PWD/.oraid"}
8-
ARGS="--from $USER --chain-id $CHAIN_ID -y --keyring-backend test --gas auto --gas-adjustment 1.5 -b sync --home $NODE_HOME"
8+
ARGS="--from $USER --chain-id $CHAIN_ID -y --keyring-backend test --gas auto --gas-adjustment 1.5 --fees 10000orai -b sync --home $NODE_HOME"
99
HIDE_LOGS="/dev/null"
1010

1111
user_address=$(oraid keys show $USER --home $NODE_HOME --keyring-backend test -a)

scripts/tests-0.42.1/test-tokenfactory-bindings.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ CHAIN_ID=${CHAIN_ID:-testing}
66
USER=${USER:-tupt}
77
NODE_HOME=${NODE_HOME:-"$PWD/.oraid"}
88
WASM_PATH=${WASM_PATH:-"$PWD/scripts/wasm_file/tokenfactory.wasm"}
9-
ARGS="--from $USER --chain-id $CHAIN_ID -y --keyring-backend test --gas auto --gas-adjustment 1.5 -b sync --home $NODE_HOME"
9+
ARGS="--from $USER --chain-id $CHAIN_ID -y --keyring-backend test --gas auto --gas-adjustment 1.5 --fees 10000orai -b sync --home $NODE_HOME"
1010
user_address=$(oraid keys show $USER --keyring-backend test --home $NODE_HOME -a)
1111
HIDE_LOGS="/dev/null"
1212

1313
# deploy cw-bindings contract
1414
store_txhash=$(oraid tx wasm store $WASM_PATH $ARGS --output json | jq -r '.txhash')
1515
# need to sleep 1s
1616
sleep 2
17-
code_id=$(oraid query tx $store_txhash --output json | jq -r '.events[4].attributes[] | select(.key | contains("code_id")).value')
17+
code_id=$(oraid query tx $store_txhash --output json | jq -r '.events[] | select(.type == "store_code") | .attributes[] | select(.key == "code_id") | .value')
1818
oraid tx wasm instantiate $code_id '{}' --label 'tokenfactory cw bindings testing' --admin $user_address $ARGS >$HIDE_LOGS
1919
sleep 2
2020
contract_address=$(oraid query wasm list-contract-by-code $code_id --output json | jq -r '.contracts[0]')

scripts/tests-0.42.1/test-tokenfactory.sh

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
#!/bin/bash
22

3-
set -ux
3+
set -eu
44

55
CHAIN_ID=${CHAIN_ID:-testing}
66
USER=${USER:-tupt}
77
NODE_HOME=${NODE_HOME:-"$PWD/.oraid"}
8-
ARGS="--from $USER --chain-id $CHAIN_ID -y --keyring-backend test --gas auto --gas-adjustment 1.5 -b sync --home $NODE_HOME"
8+
ARGS="--from $USER --chain-id $CHAIN_ID -y --keyring-backend test --gas auto --gas-adjustment 1.5 --fees 10000orai -b sync --home $NODE_HOME"
9+
CREARE_ARGS="--from $USER --chain-id $CHAIN_ID -y --keyring-backend test --gas auto --gas-adjustment 1.5 --fees 100000000orai -b sync --home $NODE_HOME"
910
HIDE_LOGS="/dev/null"
1011

1112
# prepare a new contract for gasless
@@ -17,7 +18,7 @@ fi
1718

1819
# try creating a new denom
1920
denom_name="usdt"
20-
oraid tx tokenfactory create-denom $denom_name $ARGS >$HIDE_LOGS
21+
oraid tx tokenfactory create-denom $denom_name $CREARE_ARGS >$HIDE_LOGS
2122

2223
# try querying list denoms afterwards
2324
# need to sleep 1s

scripts/tests-0.42.2/test-multi-sig.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ set -eu
55
CHAIN_ID=${CHAIN_ID:-testing}
66
USER=${USER:-tupt}
77
NODE_HOME=${NODE_HOME:-"$PWD/.oraid"}
8-
ARGS="--from $USER --chain-id $CHAIN_ID -y --keyring-backend test --gas 20000000 -b sync --home $NODE_HOME"
8+
ARGS="--from $USER --chain-id $CHAIN_ID -y --keyring-backend test --gas 20000000 --fees 10000orai -b sync --home $NODE_HOME"
99
HIDE_LOGS="/dev/null"
1010

1111
# add a signer wallet

scripts/tests-0.42.4/test-cw-stargate-staking-query.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
set -eu
77

88
WASM_PATH=${WASM_PATH:-"$PWD/scripts/wasm_file/cw-stargate-staking-query.wasm"}
9-
ARGS="--chain-id testing -y --keyring-backend test --gas auto --gas-adjustment 1.5 -b sync"
9+
ARGS="--chain-id testing -y --keyring-backend test --gas auto --gas-adjustment 1.5 --fees 10000orai -b sync"
1010
VALIDATOR1_ARGS=${VALIDATOR1_ARGS:-"--from validator1 --home $NODE_HOME"}
1111

1212
HIDE_LOGS="/dev/null"
@@ -15,7 +15,7 @@ store_ret=$(oraid tx wasm store $WASM_PATH $VALIDATOR1_ARGS $ARGS --output json)
1515
store_txhash=$(echo $store_ret | jq -r '.txhash')
1616
# need to sleep 1s for tx already in block
1717
sleep 2
18-
code_id=$(oraid query tx $store_txhash --output json | jq -r '.events[4].attributes[1].value | tonumber')
18+
code_id=$(oraid query tx $store_txhash --output json | jq -r '.events[] | select(.type == "store_code") | .attributes[] | select(.key == "code_id") | .value')
1919
oraid tx wasm instantiate $code_id '{}' --label 'cw stargate staking query' $VALIDATOR1_ARGS --admin $(oraid keys show validator1 --keyring-backend test --home $HOME/.oraid/validator1 -a) $ARGS > $HIDE_LOGS
2020
# need to sleep 1s for tx already in block
2121
sleep 2

scripts/tests-0.42.4/test-globalfee.sh

+3-1
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,16 @@ add_globalfee 0.0002
3636
sleep 5
3737
validate_globalfee 0.000200000000000000
3838

39-
globalfee_error_message=$(oraid tx bank send validator1 orai1kzkf6gttxqar9yrkxfe34ye4vg5v4m588ew7c9 1orai $VALIDATOR1_ARGS --keyring-backend test --chain-id testing --gas 200000 -y --output json | jq '.raw_log')
39+
globalfee_error_message=$(oraid tx bank send validator1 orai1kzkf6gttxqar9yrkxfe34ye4vg5v4m588ew7c9 1orai $VALIDATOR1_ARGS --keyring-backend test --chain-id testing --gas 200000 --fees 1orai -y --output json | jq '.raw_log')
4040

4141
# Check if the string contains "40orai" = 0.000200000000000000 (gas price) * 200000 (gas)
4242
if ! [[ "$globalfee_error_message" == *"40orai"* ]]; then
4343
echo "Minimum global fee is not correct. Test global fee failed!"
44+
exit 1
4445
fi
4546

4647
# reset globalfee to 0 for future tests
48+
sleep 5
4749
add_globalfee 0
4850

4951
echo "Global Fee test passed"

scripts/tests-0.50.1/test-mint-params.sh

+4-4
Original file line numberDiff line numberDiff line change
@@ -17,22 +17,22 @@ if [[ $blocks_per_yer -ne 39420000 ]]; then
1717
exit 1
1818
fi
1919

20-
if [[ $(awk "BEGIN {print $goal_bonded}") -ne 670000000000000000 ]]; then
20+
if awk "BEGIN { exit !($goal_bonded != 0.67) }"; then
2121
echo "Mint params Upgrade Failed" >&2
2222
exit 1
2323
fi
2424

25-
if [[ $inflation_max -ne 85000000000000000 ]]; then
25+
if awk "BEGIN { exit !($inflation_max != 0.085000000000000000) }"; then
2626
echo "Mint params Upgrade Failed" >&2
2727
exit 1
2828
fi
2929

30-
if [[ $inflation_min -ne 85000000000000000 ]]; then
30+
if awk "BEGIN { exit !($inflation_min != 0.085000000000000000) }"; then
3131
echo "Mint params Upgrade Failed" >&2
3232
exit 1
3333
fi
3434

35-
if [[ $(awk "BEGIN {print $inflation_rate_change}") -ne 130000000000000000 ]]; then
35+
if awk "BEGIN { exit !($inflation_rate_change != 0.13) }"; then
3636
echo "Mint params Upgrade Failed" >&2
3737
exit 1
3838
fi

0 commit comments

Comments
 (0)