Skip to content

Instantly share code, notes, and snippets.

@sibelius
Created February 24, 2023 11:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sibelius/c2b88fc9221ad373f4adc12ade6d411a to your computer and use it in GitHub Desktop.
Save sibelius/c2b88fc9221ad373f4adc12ade6d411a to your computer and use it in GitHub Desktop.
relay logging options
export const relayTransactionLogger = (event: LogEvent) => {
if (!isDev) {
return;
}
// eslint-disable-next-line
console.log('RELAY: ', event);
return;
}
const env = new Environment({
network,
store,
log: relayTransactionLogger
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment