Skip to content

Commit 4d0895e

Browse files
authored
Chore/gbbe 999 allow wasm eval (#147)
* Add console.logs * Add wasm policy * Remove console log
1 parent 86b9a81 commit 4d0895e

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

lib/arkiv/useArkivClient.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,6 @@ export function useArkivClient(): ArkivClientReturn {
6363
await switchChainAsync({ chainId: chain.id });
6464
}
6565

66-
// eslint-disable-next-line
67-
console.log('useArkivClient', {
68-
address,
69-
chain,
70-
walletClient,
71-
});
72-
7366
return createArkivWalletClient({
7467
account: address,
7568
chain,

nextjs/csp/policies/app.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ export function app(): CspDev.DirectiveDescriptor {
6363
// https://github.com/vercel/next.js/issues/14221#issuecomment-657258278
6464
config.app.isDev ? KEY_WORDS.UNSAFE_EVAL : '',
6565

66+
// Allow WebAssembly compilation (required for Arkiv SDK content zipping)
67+
'\'wasm-unsafe-eval\'',
68+
6669
// hash of ColorModeScript: system + dark
6770
'\'sha256-yYJq8IP5/WhJj6zxyTmujEqBFs/MufRufp2QKJFU76M=\'',
6871

ui/entity/EntityForm.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,11 @@ const EntityForm = ({
5353
await onSubmit?.(mappedData);
5454
} catch (e) {
5555
// eslint-disable-next-line
56-
console.log('EntityForm', e);
56+
console.error('EntityForm:', {
57+
error: e,
58+
action: edit ? 'update' : 'create',
59+
});
60+
5761
setError('root', { message: `Failed to ${ edit ? 'update' : 'create' } entity` });
5862
}
5963
}, [ isConnected, setError, onSubmit, edit ]);

0 commit comments

Comments
 (0)