File tree 2 files changed +5
-7
lines changed
2 files changed +5
-7
lines changed Original file line number Diff line number Diff line change 3
3
{
4
4
"@type" : " /cosmwasm.txfees.v1.MsgAddFeeToken" ,
5
5
"authority" : " orai10d07y265gmmuvt4z0w9aw880jnsr700jf39xhq" ,
6
- "config" : {
7
- "denom" : " factory/orai1d66z2gp6dr0ptrdvjdqhs8vkqlqnz5d7lxpmw2/usdai"
8
- }
6
+ "denom" : " factory/orai1r3n94y6vm8e0evd65pmysaa72g7kkg7smw4733/usdai"
9
7
}
10
8
],
11
9
"metadata" : " foobar" ,
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
- set -ux
3
+ set -eu
4
4
5
5
PRICE_QUERY_WASM_PATH=${PRICE_QUERY_WASM_PATH:- " $PWD /scripts/wasm_file/price-query-local.wasm" }
6
6
WASM_MOCK_ORAIDEX_PATH=${WASM_MOCK_ORAIDEX_PATH:- " $PWD /scripts/wasm_file/mock-oraidex-v3.wasm" }
@@ -122,7 +122,7 @@ update_proposal() {
122
122
cat $ADD_FEE_PROPOSAL_FILE | jq " $1 " > $PWD /scripts/json/temp_proposal.json && mv $PWD /scripts/json/temp_proposal.json $ADD_FEE_PROPOSAL_FILE
123
123
}
124
124
125
- update_proposal " .messages[0][\" config \" ][ \" denom\" ]=\" $full_denom_name \" "
125
+ update_proposal " .messages[0][\" denom\" ]=\" $full_denom_name \" "
126
126
127
127
tx_hash=$( oraid tx gov submit-proposal $ADD_FEE_PROPOSAL_FILE $ARGS --output json | jq -r ' .txhash' )
128
128
sleep 2
@@ -131,8 +131,8 @@ proposal_id=$(oraid query tx $tx_hash --output json | jq -r '.events[] | select(
131
131
oraid tx gov vote $proposal_id yes $ARGS > $HIDE_LOGS
132
132
sleep 30
133
133
134
- query_denom_config =$( oraid query txfees token-config $full_denom_name --output json | jq -r ' .config.denom ' )
135
- if ! [[ $query_denom_config =~ $full_denom_name ]]; then
134
+ query_denom_allowed =$( oraid query txfees allowed-tokens --output json | jq -r ' .tokens[0] ' )
135
+ if ! [[ $query_denom_allowed =~ $full_denom_name ]]; then
136
136
echo " Txfees tests failed. Can not add token fee"
137
137
exit 1
138
138
fi
You can’t perform that action at this time.
0 commit comments