Skip to content

Commit

Permalink
fix: log type as string (ipfs#306)
Browse files Browse the repository at this point in the history
The value field is a string so it needs to be logged as `%s` - logging as `%b` will throw.
  • Loading branch information
achingbrain committed Jan 17, 2024
1 parent 74f9c1d commit de68e4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/validator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export const validate = async (publicKey: PublicKey, buf: Uint8Array): Promise<v
throw errCode(new Error('unrecognized validity type'), ERRORS.ERR_UNRECOGNIZED_VALIDITY)
}

log('ipns record for %b is valid', record.value)
log('ipns record for %s is valid', record.value)
}

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

0 comments on commit de68e4c

Please sign in to comment.