From f1f2bbd94f7d525aa6b214ee3173c0bb9458ff5f Mon Sep 17 00:00:00 2001 From: Yuriy Glukhov Date: Sun, 19 May 2024 17:15:09 +0200 Subject: [PATCH] Added reference link --- tests/test_contract_dsl.nim | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/test_contract_dsl.nim b/tests/test_contract_dsl.nim index caad95e..7d678b7 100644 --- a/tests/test_contract_dsl.nim +++ b/tests/test_contract_dsl.nim @@ -50,6 +50,7 @@ suite "Contract DSL": checkData(c.setBool(false), "0x1e26fd330000000000000000000000000000000000000000000000000000000000000000") checkData(c.setString("hello"), "0x7fcaf6660000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000568656c6c6f000000000000000000000000000000000000000000000000000000") + # Example taken from https://docs.soliditylang.org/en/latest/abi-spec.html#use-of-dynamic-types checkData(c.g(@[@[1.u256, 2.u256], @[3.u256]], @["one", "two", "three"]), "0x2289b18c000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000000036f6e650000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000374776f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000057468726565000000000000000000000000000000000000000000000000000000") test "Constructors":