@@ -52,20 +52,20 @@ func NewMainnet() *Genesis {
5252 // 21,046,908,616.5 x 4
5353 amount := new (big.Int ).Mul (big .NewInt (210469086165 ), big .NewInt (1e17 ))
5454 tokenSupply .Add (tokenSupply , amount )
55- state .SetBalance (mustParseAddress ("0x137053dfbe6c0a43f915ad2efefefdcc2708e975" ), amount )
56- state .SetEnergy (mustParseAddress ("0x137053dfbe6c0a43f915ad2efefefdcc2708e975" ), & big.Int {}, launchTime )
55+ state .SetBalance (thor . MustParseAddress ("0x137053dfbe6c0a43f915ad2efefefdcc2708e975" ), amount )
56+ state .SetEnergy (thor . MustParseAddress ("0x137053dfbe6c0a43f915ad2efefefdcc2708e975" ), & big.Int {}, launchTime )
5757
5858 tokenSupply .Add (tokenSupply , amount )
59- state .SetBalance (mustParseAddress ("0xaf111431c1284a5e16d2eecd2daed133ce96820e" ), amount )
60- state .SetEnergy (mustParseAddress ("0xaf111431c1284a5e16d2eecd2daed133ce96820e" ), & big.Int {}, launchTime )
59+ state .SetBalance (thor . MustParseAddress ("0xaf111431c1284a5e16d2eecd2daed133ce96820e" ), amount )
60+ state .SetEnergy (thor . MustParseAddress ("0xaf111431c1284a5e16d2eecd2daed133ce96820e" ), & big.Int {}, launchTime )
6161
6262 tokenSupply .Add (tokenSupply , amount )
63- state .SetBalance (mustParseAddress ("0x997522a4274336f4b86af4a6ed9e45aedcc6d360" ), amount )
64- state .SetEnergy (mustParseAddress ("0x997522a4274336f4b86af4a6ed9e45aedcc6d360" ), & big.Int {}, launchTime )
63+ state .SetBalance (thor . MustParseAddress ("0x997522a4274336f4b86af4a6ed9e45aedcc6d360" ), amount )
64+ state .SetEnergy (thor . MustParseAddress ("0x997522a4274336f4b86af4a6ed9e45aedcc6d360" ), & big.Int {}, launchTime )
6565
6666 tokenSupply .Add (tokenSupply , amount )
67- state .SetBalance (mustParseAddress ("0x0bd7b06debd1522e75e4b91ff598f107fd826c8a" ), amount )
68- state .SetEnergy (mustParseAddress ("0x0bd7b06debd1522e75e4b91ff598f107fd826c8a" ), & big.Int {}, launchTime )
67+ state .SetBalance (thor . MustParseAddress ("0x0bd7b06debd1522e75e4b91ff598f107fd826c8a" ), amount )
68+ state .SetEnergy (thor . MustParseAddress ("0x0bd7b06debd1522e75e4b91ff598f107fd826c8a" ), & big.Int {}, launchTime )
6969
7070 builtin .Energy .Native (state , launchTime ).SetInitialSupply (tokenSupply , energySupply )
7171 return nil
@@ -121,13 +121,13 @@ type approver struct {
121121
122122func loadApprovers () []* approver {
123123 return []* approver {
124- {mustParseAddress ("0xb0f6d9933c1c2f4d891ca479343921f2d32e0fad" ), "CY Cheung" },
125- {mustParseAddress ("0xda48cc4d23b41158e1294e0e4bcce8e9953cee26" ), "George Kang" },
126- {mustParseAddress ("0xca7b45abe0d421e5628d2224bfe8fa6a6cf7c51b" ), "Jay Zhang" },
127- {mustParseAddress ("0xa03f185f2a0def1efdd687ef3b96e404869d93de" ), "Margaret Rui Zhu" },
128- {mustParseAddress ("0x74bac19f78369637db63f7496ecb5f88cc183672" ), "Peter Zhou" },
129- {mustParseAddress ("0x5fefc7836af047c949d1fea72839823d2f06f7e3" ), "Renato Grottola" },
130- {mustParseAddress ("0x7519874d0f7d31b5f0fd6f0429a4e5ece6f3fd49" ), "Sunny Lu" },
124+ {thor . MustParseAddress ("0xb0f6d9933c1c2f4d891ca479343921f2d32e0fad" ), "CY Cheung" },
125+ {thor . MustParseAddress ("0xda48cc4d23b41158e1294e0e4bcce8e9953cee26" ), "George Kang" },
126+ {thor . MustParseAddress ("0xca7b45abe0d421e5628d2224bfe8fa6a6cf7c51b" ), "Jay Zhang" },
127+ {thor . MustParseAddress ("0xa03f185f2a0def1efdd687ef3b96e404869d93de" ), "Margaret Rui Zhu" },
128+ {thor . MustParseAddress ("0x74bac19f78369637db63f7496ecb5f88cc183672" ), "Peter Zhou" },
129+ {thor . MustParseAddress ("0x5fefc7836af047c949d1fea72839823d2f06f7e3" ), "Renato Grottola" },
130+ {thor . MustParseAddress ("0x7519874d0f7d31b5f0fd6f0429a4e5ece6f3fd49" ), "Sunny Lu" },
131131 }
132132}
133133
@@ -239,9 +239,9 @@ func loadAuthorityNodes() []*authorityNode {
239239 candidates := make ([]* authorityNode , 0 , len (all ))
240240 for _ , item := range all {
241241 candidates = append (candidates , & authorityNode {
242- masterAddress : mustParseAddress (item [0 ]),
243- endorsorAddress : mustParseAddress (item [1 ]),
244- identity : mustParseBytes32 (item [2 ]),
242+ masterAddress : thor . MustParseAddress (item [0 ]),
243+ endorsorAddress : thor . MustParseAddress (item [1 ]),
244+ identity : thor . MustParseBytes32 (item [2 ]),
245245 })
246246 }
247247 return candidates
0 commit comments