File tree Expand file tree Collapse file tree 3 files changed +23
-13
lines changed Expand file tree Collapse file tree 3 files changed +23
-13
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.3-testnet] - 2022-11-09
8
+ ### Changed
9
+ - Don't error out if contract is not deployed
10
+
7
11
## [ 2.0.1-testnet] - 2022-11-09
8
12
### Changed
9
13
- Remove reservoir contracts
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @graphprotocol/common-ts" ,
3
- "version" : " 2.0.2 -testnet" ,
3
+ "version" : " 2.0.3 -testnet" ,
4
4
"description" : " Common TypeScript library for Graph Protocol components" ,
5
5
"main" : " dist/index.js" ,
6
6
"types" : " dist/index.d.ts" ,
Original file line number Diff line number Diff line change @@ -132,19 +132,25 @@ export const connectContracts = async (
132
132
}
133
133
134
134
if ( GraphChain . isL1 ( chainId ) ) {
135
- contracts . l1GraphTokenGateway = L1GraphTokenGateway__factory . connect (
136
- deployedContracts . L1GraphTokenGateway . address ,
137
- providerOrSigner ,
138
- )
139
- contracts . bridgeEscrow = BridgeEscrow__factory . connect (
140
- deployedContracts . BridgeEscrow . address ,
141
- providerOrSigner ,
142
- )
135
+ if ( contracts . l1GraphTokenGateway ) {
136
+ contracts . l1GraphTokenGateway = L1GraphTokenGateway__factory . connect (
137
+ deployedContracts . L1GraphTokenGateway . address ,
138
+ providerOrSigner ,
139
+ )
140
+ }
141
+ if ( contracts . bridgeEscrow ) {
142
+ contracts . bridgeEscrow = BridgeEscrow__factory . connect (
143
+ deployedContracts . BridgeEscrow . address ,
144
+ providerOrSigner ,
145
+ )
146
+ }
143
147
} else if ( GraphChain . isL2 ( chainId ) ) {
144
- contracts . l2GraphTokenGateway = L2GraphTokenGateway__factory . connect (
145
- deployedContracts . L2GraphTokenGateway . address ,
146
- providerOrSigner ,
147
- )
148
+ if ( contracts . l2GraphTokenGateway ) {
149
+ contracts . l2GraphTokenGateway = L2GraphTokenGateway__factory . connect (
150
+ deployedContracts . L2GraphTokenGateway . address ,
151
+ providerOrSigner ,
152
+ )
153
+ }
148
154
}
149
155
150
156
return contracts
You can’t perform that action at this time.
0 commit comments