Skip to content

Commit

Permalink
🧹 ESLint update journey: fixing small warnings [1/N] (#1057)
Browse files Browse the repository at this point in the history
  • Loading branch information
janjakubnanista authored Nov 20, 2024
1 parent 447af65 commit ed1f5db
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 29 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,7 @@ describe('MyNativeOFTAdapter Test', function () {
// Fetching the first three signers (accounts) from Hardhat's local Ethereum network
const signers = await ethers.getSigners()

ownerA = signers.at(0)!
ownerB = signers.at(1)!
endpointOwner = signers.at(2)!
;[ownerA, ownerB, endpointOwner] = signers

// The EndpointV2Mock contract comes from @layerzerolabs/test-devtools-evm-hardhat package
// and its artifacts are connected as external artifacts to this project
Expand Down
4 changes: 1 addition & 3 deletions examples/native-oft-adapter/test/hardhat/MyOFT.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,7 @@ describe('MyOFT Test', function () {
// Fetching the first three signers (accounts) from Hardhat's local Ethereum network
const signers = await ethers.getSigners()

ownerA = signers.at(0)!
ownerB = signers.at(1)!
endpointOwner = signers.at(2)!
;[ownerA, ownerB, endpointOwner] = signers

// The EndpointV2Mock contract comes from @layerzerolabs/test-devtools-evm-hardhat package
// and its artifacts are connected as external artifacts to this project
Expand Down
4 changes: 1 addition & 3 deletions examples/oapp-read/test/hardhat/MyOAppRead.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,7 @@ describe('MyOApp Test', function () {
// Fetching the first three signers (accounts) from Hardhat's local Ethereum network
const signers = await ethers.getSigners()

ownerA = signers.at(0)!
ownerB = signers.at(1)!
endpointOwner = signers.at(2)!
;[ownerA, ownerB, endpointOwner] = signers

// The EndpointV2Mock contract comes from @layerzerolabs/test-devtools-evm-hardhat package
// and its artifacts are connected as external artifacts to this project
Expand Down
4 changes: 1 addition & 3 deletions examples/oapp/test/hardhat/MyOApp.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@ describe('MyOApp Test', function () {
// Fetching the first three signers (accounts) from Hardhat's local Ethereum network
const signers = await ethers.getSigners()

ownerA = signers.at(0)!
ownerB = signers.at(1)!
endpointOwner = signers.at(2)!
;[ownerA, ownerB, endpointOwner] = signers

// The EndpointV2Mock contract comes from @layerzerolabs/test-devtools-evm-hardhat package
// and its artifacts are connected as external artifacts to this project
Expand Down
4 changes: 1 addition & 3 deletions examples/oft-adapter/test/hardhat/MyOFTAdapter.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,7 @@ describe('MyOFTAdapter Test', function () {
// Fetching the first three signers (accounts) from Hardhat's local Ethereum network
const signers = await ethers.getSigners()

ownerA = signers.at(0)!
ownerB = signers.at(1)!
endpointOwner = signers.at(2)!
;[ownerA, ownerB, endpointOwner] = signers

// The EndpointV2Mock contract comes from @layerzerolabs/test-devtools-evm-hardhat package
// and its artifacts are connected as external artifacts to this project
Expand Down
4 changes: 1 addition & 3 deletions examples/oft-solana/test/hardhat/MyOFT.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,7 @@ describe('MyOFT Test', function () {
// Fetching the first three signers (accounts) from Hardhat's local Ethereum network
const signers = await ethers.getSigners()

ownerA = signers.at(0)!
ownerB = signers.at(1)!
endpointOwner = signers.at(2)!
;[ownerA, ownerB, endpointOwner] = signers

// The EndpointV2Mock contract comes from @layerzerolabs/test-devtools-evm-hardhat package
// and its artifacts are connected as external artifacts to this project
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@ describe('MyOFTUpgradeable Test', () => {
// Fetching the first three signers (accounts) from Hardhat's local Ethereum network
const signers = await ethers.getSigners()

ownerA = signers.at(0)!
ownerB = signers.at(1)!
endpointOwner = signers.at(2)!
;[ownerA, ownerB, endpointOwner] = signers

// The EndpointV2Mock contract comes from @layerzerolabs/test-devtools-evm-hardhat package
// and its artifacts are connected as external artifacts to this project
Expand Down
4 changes: 1 addition & 3 deletions examples/oft/test/hardhat/MyOFT.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,7 @@ describe('MyOFT Test', function () {
// Fetching the first three signers (accounts) from Hardhat's local Ethereum network
const signers = await ethers.getSigners()

ownerA = signers.at(0)!
ownerB = signers.at(1)!
endpointOwner = signers.at(2)!
;[ownerA, ownerB, endpointOwner] = signers

// The EndpointV2Mock contract comes from @layerzerolabs/test-devtools-evm-hardhat package
// and its artifacts are connected as external artifacts to this project
Expand Down
4 changes: 1 addition & 3 deletions examples/onft721/test/hardhat/MyONFT721.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,7 @@ describe('MyONFT721 Test', function () {
// Fetching the first three signers (accounts) from Hardhat's local Ethereum network
const signers = await ethers.getSigners()

ownerA = signers.at(0)!
ownerB = signers.at(1)!
endpointOwner = signers.at(2)!
;[ownerA, ownerB, endpointOwner] = signers

// The EndpointV2Mock contract comes from @layerzerolabs/test-devtools-evm-hardhat package
// and its artifacts are connected as external artifacts to this project
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ describe('UniswapV3QuoteDemo Test', function () {
// Fetching the first three signers (accounts) from Hardhat's local Ethereum network
const signers = await ethers.getSigners()

ownerA = signers.at(0)!
endpointOwner = signers.at(1)!
;[ownerA, endpointOwner] = signers

// The EndpointV2Mock contract comes from @layerzerolabs/test-devtools-evm-hardhat package
// and its artifacts are connected as external artifacts to this project
Expand Down

0 comments on commit ed1f5db

Please sign in to comment.