From 7a098b183fa072992110530feab7728f81f32265 Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Mon, 18 Apr 2022 19:02:56 +0200 Subject: [PATCH] test: add type check test for abi array tuples (#1143) --- ethers-core/src/abi/mod.rs | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/ethers-core/src/abi/mod.rs b/ethers-core/src/abi/mod.rs index b2d50839..b4db858a 100644 --- a/ethers-core/src/abi/mod.rs +++ b/ethers-core/src/abi/mod.rs @@ -270,4 +270,22 @@ mod tests { <[u16; 32]>::param_type() ); } + + #[test] + fn abi_type_tuples_work() { + fn assert_abitype() {} + fn assert_abiarraytype() {} + + assert_abitype::<(u64, u64)>(); + assert_abiarraytype::<(u64, u64)>(); + + assert_abitype::<(u8, u8)>(); + assert_abiarraytype::<(u8, u8)>(); + + assert_abitype::>(); + assert_abiarraytype::>(); + + assert_abitype::>(); + assert_abiarraytype::>(); + } }