You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Added `replaceBigInts` (sourced from `@ponder/utils`) and `toJson` helpers to `@ensnode/ensnode-sdk`. `toJson` now takes an options object (`{ pretty?: boolean }`) with `pretty` defaulting to `false` — pass `{ pretty: true }` for indented output. Migrated all in-repo call sites and dropped the `@ponder/utils` dependency from `ensapi`.
@@ -101,6 +101,6 @@ export async function healAddrReverseSubnameLabel(
101
101
102
102
// Invariant: by this point, we should have healed all subnames of addr.reverse
103
103
thrownewError(
104
-
`Invariant(healAddrReverseSubnameLabel): Unable to heal the label for subname of addr.reverse with labelHash '${labelHash}'. Event:\n${toJson(event)}`,
104
+
`Invariant(healAddrReverseSubnameLabel): Unable to heal the label for subname of addr.reverse with labelHash '${labelHash}'. Event:\n${toJson(event,{pretty: true})}`,
// Invariant: If there is an existing Registration, it must be fully expired.
121
125
if(registration&&!isFullyExpired){
122
126
thrownewError(
123
-
`Invariant(BaseRegistrar:NameRegistered): Existing unexpired registration found in NameRegistered, expected none or expired.\n${toJson(registration)}`,
127
+
`Invariant(BaseRegistrar:NameRegistered): Existing unexpired registration found in NameRegistered, expected none or expired.\n${toJson(registration,{pretty: true})}`,
124
128
);
125
129
}
126
130
@@ -184,6 +188,7 @@ export default function () {
184
188
node,
185
189
domainId,
186
190
},
191
+
{pretty: true},
187
192
)}`,
188
193
);
189
194
}
@@ -193,6 +198,7 @@ export default function () {
193
198
thrownewError(
194
199
`Invariant(BaseRegistrar:NameRenewed): NameRenewed emitted for a non-BaseRegistrar registration:\n${toJson(
`Invariant(NameWrapper:Transfer): Transfer of expired Registration with PARENT_CANNOT_CONTROL set:\n${toJson(registration)}${JSON.stringify({isPccFuseSet: isPccFuseSet(registration.fuses??0)})}`,
139
+
`Invariant(NameWrapper:Transfer): Transfer of expired Registration with PARENT_CANNOT_CONTROL set:\n${toJson(registration,{pretty: true})}${JSON.stringify({isPccFuseSet: isPccFuseSet(registration.fuses??0)})}`,
140
140
);
141
141
}
142
142
@@ -203,21 +203,21 @@ export default function () {
0 commit comments