File tree Expand file tree Collapse file tree 4 files changed +10
-7
lines changed Expand file tree Collapse file tree 4 files changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
4
4
The format is based on [ Keep a Changelog] ( https://keepachangelog.com/en/1.0.0/ ) ,
5
5
and this project adheres to [ Semantic Versioning] ( https://semver.org/spec/v2.0.0.html ) .
6
6
7
+ ## [ 2.0.4-testnet] - 2022-11-09
8
+ ### Changed
9
+ - Fix L1/L2 specific contracts not being loaded
10
+
7
11
## [ 2.0.3-testnet] - 2022-11-09
8
12
### Changed
9
13
- Don't error out if contract is not deployed
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @graphprotocol/common-ts" ,
3
- "version" : " 2.0.3 -testnet" ,
3
+ "version" : " 2.0.4 -testnet" ,
4
4
"description" : " Common TypeScript library for Graph Protocol components" ,
5
5
"main" : " dist/index.js" ,
6
6
"types" : " dist/index.d.ts" ,
16
16
"test:watch" : " jest --watch --passWithNoTests --detectOpenHandles --verbose"
17
17
},
18
18
"dependencies" : {
19
- "@graphprotocol/contracts" : " ^2.0.0 -testnet" ,
19
+ "@graphprotocol/contracts" : " l2 -testnet" ,
20
20
"@graphprotocol/pino-sentry-simple" : " 0.7.1" ,
21
21
"@urql/core" : " 2.4.4" ,
22
22
"@urql/exchange-execute" : " 1.2.2" ,
Original file line number Diff line number Diff line change @@ -73,7 +73,6 @@ export const connectContracts = async (
73
73
) : Promise < NetworkContracts > => {
74
74
// eslint-disable-next-line @typescript-eslint/no-explicit-any
75
75
const deployedContracts = ( DEPLOYED_CONTRACTS as any ) [ `${ chainId } ` ]
76
-
77
76
const GraphTokenFactory = GraphChain . isL1 ( chainId )
78
77
? GraphToken__factory
79
78
: L2GraphToken__factory
@@ -132,20 +131,20 @@ export const connectContracts = async (
132
131
}
133
132
134
133
if ( GraphChain . isL1 ( chainId ) ) {
135
- if ( contracts . l1GraphTokenGateway ) {
134
+ if ( deployedContracts . L1GraphTokenGateway ) {
136
135
contracts . l1GraphTokenGateway = L1GraphTokenGateway__factory . connect (
137
136
deployedContracts . L1GraphTokenGateway . address ,
138
137
providerOrSigner ,
139
138
)
140
139
}
141
- if ( contracts . bridgeEscrow ) {
140
+ if ( deployedContracts . BridgeEscrow ) {
142
141
contracts . bridgeEscrow = BridgeEscrow__factory . connect (
143
142
deployedContracts . BridgeEscrow . address ,
144
143
providerOrSigner ,
145
144
)
146
145
}
147
146
} else if ( GraphChain . isL2 ( chainId ) ) {
148
- if ( contracts . l2GraphTokenGateway ) {
147
+ if ( deployedContracts . L2GraphTokenGateway ) {
149
148
contracts . l2GraphTokenGateway = L2GraphTokenGateway__factory . connect (
150
149
deployedContracts . L2GraphTokenGateway . address ,
151
150
providerOrSigner ,
Original file line number Diff line number Diff line change 647
647
resolved "https://registry.npmjs.org/@gar/promisify/-/promisify-1.1.3.tgz#555193ab2e3bb3b6adc3d551c9c030d9e860daf6"
648
648
integrity sha512-k2Ty1JcVojjJFwrg/ThKi2ujJ7XNLYaFGNB/bWT9wGR+oSMJHMa5w+CUq6p/pVrKeNNgA7pCqEcjSnHVoqJQFw==
649
649
650
- " @graphprotocol/contracts@^2.0.0 -testnet " :
650
+ " @graphprotocol/contracts@l2 -testnet " :
651
651
version "2.0.0-testnet"
652
652
resolved "https://registry.yarnpkg.com/@graphprotocol/contracts/-/contracts-2.0.0-testnet.tgz#95f3156a03bffc754f523240bf47801a4cbc7eca"
653
653
integrity sha512-ZJ/dxGeSnN4cFI7HGUcU2HBe7hZtNat/5UX2B4f27sQyfV9IJBcXy+6wBugn97rmZFPGj3yk7K1PMvJVVOFKpA==
You can’t perform that action at this time.
0 commit comments