aboutsummaryrefslogtreecommitdiffstats
path: root/common/resolver
diff options
context:
space:
mode:
Diffstat (limited to 'common/resolver')
-rw-r--r--common/resolver/resolver_test.go8
1 files changed, 6 insertions, 2 deletions
diff --git a/common/resolver/resolver_test.go b/common/resolver/resolver_test.go
index 7d570cbc6..a67b9ad04 100644
--- a/common/resolver/resolver_test.go
+++ b/common/resolver/resolver_test.go
@@ -24,12 +24,16 @@ func NewTestBackend() *testBackend {
self.contracts = make(map[string](map[string]string))
self.contracts["0x"+HashRegContractAddress] = make(map[string]string)
- key := storageAddress(1, common.Hex2BytesFixed(codehash, 32))
+ key := storageAddress(storageMapping(storageIdx2Addr(1), common.Hex2BytesFixed(codehash, 32)))
self.contracts["0x"+HashRegContractAddress][key] = "0x" + hash
self.contracts["0x"+URLHintContractAddress] = make(map[string]string)
- key = storageAddress(1, common.Hex2BytesFixed(hash, 32))
+ mapaddr := storageMapping(storageIdx2Addr(1), common.Hex2BytesFixed(hash, 32))
+
+ key = storageAddress(storageFixedArray(mapaddr, storageIdx2Addr(0)))
self.contracts["0x"+URLHintContractAddress][key] = "0x" + common.Bytes2Hex([]byte(url))
+ key = storageAddress(storageFixedArray(mapaddr, storageIdx2Addr(1)))
+ self.contracts["0x"+URLHintContractAddress][key] = "0x00"
return self
}