From f9186b712e3da683c7576e5a0a4748eb10df128a Mon Sep 17 00:00:00 2001 From: Jared Wasinger Date: Mon, 9 Dec 2024 13:59:41 +0700 Subject: [PATCH] one more test --- accounts/abi/bind/v2/contract_linking_test.go | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/accounts/abi/bind/v2/contract_linking_test.go b/accounts/abi/bind/v2/contract_linking_test.go index ecdccbfb3a..4c5d2c2a24 100644 --- a/accounts/abi/bind/v2/contract_linking_test.go +++ b/accounts/abi/bind/v2/contract_linking_test.go @@ -247,5 +247,16 @@ func TestContractLinking(t *testing.T) { 'f': {}, 'g': {}, 'c': {}, 'd': {}, 'h': {}, }) + // test nested libraries that share deps at different levels of the tree.. with override. + testLinkCase(t, map[rune][]rune{ + 'a': {'b', 'c', 'd', 'e'}, + 'e': {'f', 'g', 'h', 'i', 'm'}, + 'i': {'j', 'k', 'l', 'm'}}, + map[rune]struct{}{ + 'i': {}, + }, + map[rune]struct{}{ + 'a': {}, 'b': {}, 'c': {}, 'd': {}, 'e': {}, 'f': {}, 'g': {}, 'h': {}, 'm': {}, + }) // TODO: same as the above case but nested one level of dependencies deep (?) }