aboutsummaryrefslogtreecommitdiffstats
path: root/common/resolver/contracts.go
diff options
context:
space:
mode:
authorzsfelfoldi <zsfelfoldi@gmail.com>2015-04-17 19:46:38 +0800
committerzelig <viktor.tron@gmail.com>2015-04-20 03:57:49 +0800
commit929428d60216f31b2494df1ebf76d9be2a66028c (patch)
treed1f0ca664bf5f4428fdd4f6ad8f46fc16822eebe /common/resolver/contracts.go
parentb6fe9e0c838ced143cbdcc867b53ada2711b39da (diff)
downloadgo-tangerine-929428d60216f31b2494df1ebf76d9be2a66028c.tar.gz
go-tangerine-929428d60216f31b2494df1ebf76d9be2a66028c.tar.zst
go-tangerine-929428d60216f31b2494df1ebf76d9be2a66028c.zip
URLhint support for URLs longer than 32 bytes
Diffstat (limited to 'common/resolver/contracts.go')
-rw-r--r--common/resolver/contracts.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/common/resolver/contracts.go b/common/resolver/contracts.go
index ed7d648d6..4aad95e43 100644
--- a/common/resolver/contracts.go
+++ b/common/resolver/contracts.go
@@ -1,17 +1,17 @@
package resolver
const ( // built-in contracts address and code
- ContractCodeURLhint = "0x60b180600c6000396000f30060003560e060020a90048063d66d6c1014601557005b60216004356024356027565b60006000f35b6000600083815260200190815260200160002054600160a060020a0316600014806075575033600160a060020a03166000600084815260200190815260200160002054600160a060020a0316145b607c5760ad565b3360006000848152602001908152602001600020819055508060016000848152602001908152602001600020819055505b505056"
+ ContractCodeURLhint = "0x60c180600c6000396000f30060003560e060020a90048063300a3bbf14601557005b6024600435602435604435602a565b60006000f35b6000600084815260200190815260200160002054600160a060020a0316600014806078575033600160a060020a03166000600085815260200190815260200160002054600160a060020a0316145b607f5760bc565b336000600085815260200190815260200160002081905550806001600085815260200190815260200160002083610100811060b657005b01819055505b50505056"
/*
contract URLhint {
- function register(uint256 _hash, uint256 _url) {
+ function register(uint256 _hash, uint8 idx, uint256 _url) {
if (owner[_hash] == 0 || owner[_hash] == msg.sender) {
owner[_hash] = msg.sender;
- url[_hash] = _url;
+ url[_hash][idx] = _url;
}
}
mapping (uint256 => address) owner;
- mapping (uint256 => uint256) url;
+ mapping (uint256 => uint256[256]) url;
}
*/