Skip to content

Commit 9b88bbd

Browse files
authored
fix sample Arweave subgraph (#1877)
`!urlSafe` check is only needed for the `if` statement on line 237
1 parent 6e195c2 commit 9b88bbd

File tree

1 file changed

+1
-1
lines changed
  • examples/arweave-blocks-transactions/src

1 file changed

+1
-1
lines changed

examples/arweave-blocks-transactions/src/blocks.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ function bytesToBase64(bytes: Uint8Array, urlSafe: boolean): string {
229229
result += '==';
230230
}
231231
}
232-
if (!urlSafe && i === l) {
232+
if (i === l) {
233233
// 2 octets yet to write
234234
result += alphabet[bytes[i - 2] >> 2];
235235
result += alphabet[((bytes[i - 2] & 0x03) << 4) | (bytes[i - 1] >> 4)];

0 commit comments

Comments
 (0)