File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed
packages/payment-processor Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ export function getProvider(): providers.Web3Provider {
3030
3131/**
3232 * Utility to get a network provider, depending on the request's currency network.
33- * Will throw an error if the network isn't mainnet or rinkeby
33+ * Will throw an error if the network isn't mainnet, rinkeby, or goerli
3434 *
3535 * @param request
3636 */
Original file line number Diff line number Diff line change @@ -108,6 +108,15 @@ describe('getNetworkProvider', () => {
108108 expect ( getNetworkProvider ( request ) ) . toBeInstanceOf ( providers . Provider ) ;
109109 } ) ;
110110
111+ it ( 'returns a provider for goerli' , ( ) => {
112+ const request : any = {
113+ currencyInfo : {
114+ network : 'goerli' ,
115+ } ,
116+ } ;
117+ expect ( getNetworkProvider ( request ) ) . toBeInstanceOf ( providers . Provider ) ;
118+ } ) ;
119+
111120 it ( 'fails for other network' , ( ) => {
112121 const request : any = {
113122 currencyInfo : {
You can’t perform that action at this time.
0 commit comments