mirror of
https://github.com/serai-dex/serai.git
synced 2025-01-13 14:25:01 +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:
parent
7761798a78
commit
8746b54a43
1 changed files with 0 additions and 7 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue