Skip to content

Commit de68e4c

Browse files
authored
fix: log type as string (#306)
The value field is a string so it needs to be logged as `%s` - logging as `%b` will throw.
1 parent 74f9c1d commit de68e4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/validator.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export const validate = async (publicKey: PublicKey, buf: Uint8Array): Promise<v
4646
throw errCode(new Error('unrecognized validity type'), ERRORS.ERR_UNRECOGNIZED_VALIDITY)
4747
}
4848

49-
log('ipns record for %b is valid', record.value)
49+
log('ipns record for %s is valid', record.value)
5050
}
5151

5252
export async function ipnsValidator (key: Uint8Array, marshalledData: Uint8Array): Promise<void> {

0 commit comments

Comments
 (0)