File tree 5 files changed +21
-5
lines changed
grant-explorer/src/features/api
round-manager/src/features 5 files changed +21
-5
lines changed Original file line number Diff line number Diff line change @@ -220,13 +220,23 @@ export const submitApplication =
220
220
let application : RoundApplication ;
221
221
let deterministicApplication : string ;
222
222
223
+ let chain : string = "" ;
224
+
225
+ if ( chainName === "mainnet" ) {
226
+ chain = "ethereum" ;
227
+ } else if ( chainName === "pgn" ) {
228
+ chain = "publicGoodsNetwork" ;
229
+ } else {
230
+ chain = chainName ;
231
+ }
232
+
223
233
try {
224
234
const builder = new RoundApplicationBuilder (
225
235
true ,
226
236
project ,
227
237
roundApplicationMetadata ,
228
238
roundAddress ,
229
- chainName === "mainnet" ? "ethereum" : chainName // lit wants "ethereum" for mainnet
239
+ chain
230
240
) ;
231
241
232
242
application = await builder . build ( roundAddress , formInputs ) ;
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import { VerifiableCredential } from "@gitcoinco/passport-sdk-types";
4
4
import { ChainId } from "common" ;
5
5
import { BigNumber } from "ethers" ;
6
6
7
- export type Network = "goerli" | "optimism" | "Fantom " ;
7
+ export type Network = "goerli" | "optimism" | "fantom" | "pgn ";
8
8
9
9
export interface Web3Instance {
10
10
/**
Original file line number Diff line number Diff line change @@ -50,7 +50,10 @@ export async function roundApplicationsToCSV(
50
50
}
51
51
52
52
const lit = new Lit ( {
53
- chain : chainName . toLowerCase ( ) ,
53
+ chain :
54
+ chainName . toLowerCase ( ) === "pgn"
55
+ ? "publicGoodsNetwork"
56
+ : chainName . toLowerCase ( ) ,
54
57
contract : roundId ,
55
58
} ) ;
56
59
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import { VerifiableCredential } from "@gitcoinco/passport-sdk-types";
7
7
import { BigNumber } from "ethers" ;
8
8
import { SchemaQuestion } from "./utils" ;
9
9
10
- export type Network = "goerli" | "optimism" ;
10
+ export type Network = "goerli" | "optimism" | "fantom" | "pgn" ;
11
11
12
12
export interface Web3Instance {
13
13
/**
Original file line number Diff line number Diff line change @@ -263,7 +263,10 @@ export default function ViewApplicationPage() {
263
263
const encryptedString : Blob = await response . blob ( ) ;
264
264
265
265
const lit = new Lit ( {
266
- chain : chain . name . toLowerCase ( ) ,
266
+ chain :
267
+ chain . name . toLowerCase ( ) === "pgn"
268
+ ? "publicGoodsNetwork"
269
+ : chain . name . toLowerCase ( ) ,
267
270
contract : utils . getAddress ( roundId ) ,
268
271
} ) ;
269
272
You can’t perform that action at this time.
0 commit comments