mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-08 20:29:23 +00:00
Don't use a different address for DAI in test
anvil will let us deploy to the existing address.
This commit is contained in:
@@ -17,18 +17,11 @@ use serai_client::{
|
|||||||
|
|
||||||
use primitives::{OutputType, ReceivedOutput};
|
use primitives::{OutputType, ReceivedOutput};
|
||||||
|
|
||||||
#[cfg(not(test))]
|
|
||||||
const DAI: [u8; 20] =
|
const DAI: [u8; 20] =
|
||||||
match const_hex::const_decode_to_array(b"0x6B175474E89094C44Da98b954EedeAC495271d0F") {
|
match const_hex::const_decode_to_array(b"0x6B175474E89094C44Da98b954EedeAC495271d0F") {
|
||||||
Ok(res) => res,
|
Ok(res) => res,
|
||||||
Err(_) => panic!("invalid non-test DAI hex address"),
|
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> {
|
fn coin_to_serai_coin(coin: &EthereumCoin) -> Option<Coin> {
|
||||||
match coin {
|
match coin {
|
||||||
|
|||||||
Reference in New Issue
Block a user