Skip to content

Commit 60a6804

Browse files
committed
updates
1 parent f1b777a commit 60a6804

File tree

2 files changed

+20
-20
lines changed

2 files changed

+20
-20
lines changed

contracts/script/GenerateAdminProxyAlloc.s.sol

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ contract GenerateAdminProxyAlloc is Script {
5252
console.log(' "alloc": {');
5353
console.log(' "000000000000000000000000000000000000Ad00": {');
5454
console.log(' "balance": "0x0",');
55-
console.log(' "code": "0x%s",', vm.toString(runtimeCode));
55+
console.log(' "code": "%s",', vm.toString(runtimeCode));
5656
console.log(' "storage": {');
57-
console.log(' "0x0": "0x%s"', vm.toString(ownerSlotValue));
57+
console.log(' "0x0": "%s"', vm.toString(ownerSlotValue));
5858
console.log(" }");
5959
console.log(" }");
6060
console.log(" }");
@@ -100,9 +100,9 @@ contract GenerateAdminProxyAllocJSON is Script {
100100
// Output minimal JSON that can be merged into genesis
101101
string memory json = string(
102102
abi.encodePacked(
103-
'{"000000000000000000000000000000000000Ad00":{"balance":"0x0","code":"0x',
103+
'{"000000000000000000000000000000000000Ad00":{"balance":"0x0","code":"',
104104
vm.toString(runtimeCode),
105-
'","storage":{"0x0":"0x',
105+
'","storage":{"0x0":"',
106106
vm.toString(ownerSlotValue),
107107
'"}}}'
108108
)

contracts/script/GenerateFeeVaultAlloc.s.sol

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -130,15 +130,15 @@ contract GenerateFeeVaultAlloc is FeeVaultAllocBase {
130130
console.log(' "alloc": {');
131131
console.log(' "%s": {', addressKey(cfg.feeVaultAddress));
132132
console.log(' "balance": "0x0",');
133-
console.log(' "code": "0x%s",', vm.toString(runtimeCode));
133+
console.log(' "code": "%s",', vm.toString(runtimeCode));
134134
console.log(' "storage": {');
135-
console.log(' "0x0": "0x%s",', vm.toString(slot0));
136-
console.log(' "0x1": "0x%s",', vm.toString(slot1));
137-
console.log(' "0x2": "0x%s",', vm.toString(slot2));
138-
console.log(' "0x3": "0x%s",', vm.toString(slot3));
139-
console.log(' "0x4": "0x%s",', vm.toString(slot4));
140-
console.log(' "0x5": "0x%s",', vm.toString(slot5));
141-
console.log(' "0x6": "0x%s"', vm.toString(slot6));
135+
console.log(' "0x0": "%s",', vm.toString(slot0));
136+
console.log(' "0x1": "%s",', vm.toString(slot1));
137+
console.log(' "0x2": "%s",', vm.toString(slot2));
138+
console.log(' "0x3": "%s",', vm.toString(slot3));
139+
console.log(' "0x4": "%s",', vm.toString(slot4));
140+
console.log(' "0x5": "%s",', vm.toString(slot5));
141+
console.log(' "0x6": "%s"', vm.toString(slot6));
142142
console.log(" }");
143143
console.log(" }");
144144
console.log(" }");
@@ -164,21 +164,21 @@ contract GenerateFeeVaultAllocJSON is FeeVaultAllocBase {
164164
abi.encodePacked(
165165
'{"',
166166
addressKey(cfg.feeVaultAddress),
167-
'":{"balance":"0x0","code":"0x',
167+
'":{"balance":"0x0","code":"',
168168
vm.toString(runtimeCode),
169-
'","storage":{"0x0":"0x',
169+
'","storage":{"0x0":"',
170170
vm.toString(slot0),
171-
'","0x1":"0x',
171+
'","0x1":"',
172172
vm.toString(slot1),
173-
'","0x2":"0x',
173+
'","0x2":"',
174174
vm.toString(slot2),
175-
'","0x3":"0x',
175+
'","0x3":"',
176176
vm.toString(slot3),
177-
'","0x4":"0x',
177+
'","0x4":"',
178178
vm.toString(slot4),
179-
'","0x5":"0x',
179+
'","0x5":"',
180180
vm.toString(slot5),
181-
'","0x6":"0x',
181+
'","0x6":"',
182182
vm.toString(slot6),
183183
'"}}}'
184184
)

0 commit comments

Comments
 (0)