Skip to content

Commit

Permalink
fix(test): evm e2e oracle test fixed pair name (#2200)
Browse files Browse the repository at this point in the history
* fix(test): evm e2e oracle test fixed pair name

* fix(test): fixed pair name in localnet

* chore: changelog
  • Loading branch information
onikonychev authored Feb 7, 2025
1 parent 1d543b3 commit 2b4e8c0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ needed to include double quotes around the hexadecimal string.
- [#2187](https://github.com/NibiruChain/nibiru/pull/2187) - fix(evm): fix eip55 address encoding
- [#2188](https://github.com/NibiruChain/nibiru/pull/2188) - refactor(evm): update logs emission
- [#2192](https://github.com/NibiruChain/nibiru/pull/2192) - fix(oracle): correctly handle misscount
- [#2200](https://github.com/NibiruChain/nibiru/pull/2200) - fix(test): evm e2e oracle test fixed pair name

#### Nibiru EVM | Before Audit 2 - 2024-12-06

Expand Down
4 changes: 2 additions & 2 deletions contrib/scripts/localnet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -218,9 +218,9 @@ add_genesis_param '.app_state.sudo.sudoers.root = "'"$val_address"'"'
# hack for localnet since we don't have a pricefeeder yet
price_btc="50000"
price_eth="2000"
add_genesis_param '.app_state.oracle.exchange_rates[0].pair = "ubtc:uuusd"'
add_genesis_param '.app_state.oracle.exchange_rates[0].pair = "ubtc:uusd"'
add_genesis_param '.app_state.oracle.exchange_rates[0].exchange_rate = "'"$price_btc"'"'
add_genesis_param '.app_state.oracle.exchange_rates[1].pair = "ueth:uuusd"'
add_genesis_param '.app_state.oracle.exchange_rates[1].pair = "ueth:uusd"'
add_genesis_param '.app_state.oracle.exchange_rates[1].exchange_rate = "'"$price_eth"'"'

# ------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion evm-e2e/test/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export const deployContractNibiruOracleChainLinkLike = async (): Promise<{
deploymentTransaction(): ContractTransactionResponse;
};
}> => {
const oraclePair = 'ueth:uuusd';
const oraclePair = 'ueth:uusd';
const factory = new NibiruOracleChainLinkLike__factory(account);
const contract = await factory.deploy(oraclePair, toBigInt(8));
await contract.waitForDeployment();
Expand Down

0 comments on commit 2b4e8c0

Please sign in to comment.