Skip to content

Commit

Permalink
Fix: Null checks
Browse files Browse the repository at this point in the history
  • Loading branch information
arrenv committed Feb 24, 2023
1 parent 23b06fd commit 46bec85
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ function* initiateSafeTransactionAction({
}

/* eslint-disable-next-line max-len */
const txDataToBeSentToAMB = yield homeBridge.interface.functions.requireToPassMessage.encode(
const txDataToBeSentToAMB = yield homeBridge?.interface.functions.requireToPassMessage.encode(
[zodiacBridgeModule.address, txDataToBeSentToZodiacModule, 1000000],
);

Expand Down Expand Up @@ -142,7 +142,7 @@ function* initiateSafeTransactionAction({
methodName: 'makeArbitraryTransactions',
identifier: colonyAddress,
params: [
fill(Array(transactionData.length), homeBridge.address),
fill(Array(transactionData.length), homeBridge?.address),
transactionData,
true,
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ function* initiateSafeTransactionMotion({
}

/* eslint-disable-next-line max-len */
const txDataToBeSentToAMB = yield homeBridge.interface.functions.requireToPassMessage.encode(
const txDataToBeSentToAMB = yield homeBridge?.interface.functions.requireToPassMessage.encode(
[zodiacBridgeModule.address, txDataToBeSentToZodiacModule, 1000000],
);

Expand All @@ -167,7 +167,7 @@ function* initiateSafeTransactionMotion({
* All the transactions will be send to the home bridge, therefore we just generate an array filled with the corresponding address.
*
*/
fill(Array(transactionData.length), homeBridge.address),
fill(Array(transactionData.length), homeBridge?.address),
transactionData,
true,
],
Expand Down

0 comments on commit 46bec85

Please sign in to comment.