diff --git a/tests/contractabi/testCustomTypes.nim b/tests/contractabi/testCustomTypes.nim index 9966da6..13ae90d 100644 --- a/tests/contractabi/testCustomTypes.nim +++ b/tests/contractabi/testCustomTypes.nim @@ -23,3 +23,9 @@ suite "custom types": test "can be decoded": let encoding = AbiEncoder.encode(custom) check AbiDecoder.decode(encoding, CustomType) == success custom + + test "can be embedded in tuples, arrays and sequences": + let embedding = (custom, [custom], @[custom]) + let encoding = AbiEncoder.encode(embedding) + let decoded = AbiDecoder.decode(encoding, typeof(embedding)) + check !decoded == embedding