Don't use a different address for DAI in test

anvil will let us deploy to the existing address.
This commit is contained in:
Luke Parker 2024-09-14 12:50:14 -04:00
parent 7761798a78
commit 8746b54a43

View file

@ -17,18 +17,11 @@ use serai_client::{
use primitives::{OutputType, ReceivedOutput};
#[cfg(not(test))]
const DAI: [u8; 20] =
match const_hex::const_decode_to_array(b"0x6B175474E89094C44Da98b954EedeAC495271d0F") {
Ok(res) => res,
Err(_) => panic!("invalid non-test DAI hex address"),
};
#[cfg(test)] // TODO
const DAI: [u8; 20] =
match const_hex::const_decode_to_array(b"0000000000000000000000000000000000000000") {
Ok(res) => res,
Err(_) => panic!("invalid test DAI hex address"),
};
fn coin_to_serai_coin(coin: &EthereumCoin) -> Option<Coin> {
match coin {