test: add ethcall derive test for vec tuples (#1144)

This commit is contained in:
Matthias Seitz 2022-04-23 12:09:29 +02:00 committed by GitHub
parent 8dd72723d1
commit 77bd9d49c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 0 deletions

View File

@ -584,6 +584,15 @@ fn can_derive_array_tuples() {
}
}
#[test]
fn can_handle_abigen_tuples() {
#[derive(Clone, Debug, Default, Eq, PartialEq, EthCall, EthDisplay)]
#[ethcall(name = "swap", abi = "swap((uint8,uint8)[])")]
pub struct SwapCall {
pub pairs_to_swap: ::std::vec::Vec<(u8, u8)>,
}
}
#[test]
fn eth_display_works_on_ethers_bytes() {
#[derive(Clone, Debug, Default, Eq, PartialEq, EthCall, EthDisplay)]