Created
February 24, 2023 11:28
-
-
Save sibelius/c2b88fc9221ad373f4adc12ade6d411a to your computer and use it in GitHub Desktop.
relay logging options
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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