Skip to content

Commit

Permalink
Test api-kit with an alternative RPC
Browse files Browse the repository at this point in the history
  • Loading branch information
yagopv committed May 15, 2024
1 parent f7d4e50 commit 1b09a06
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion packages/api-kit/hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const config: HardhatUserConfig = {
},
sepolia: {
...sharedNetworkConfig,
url: 'https://rpc.ankr.com/eth_sepolia'
url: 'https://rpc2.sepolia.org'
}
},
//@ts-expect-error Type not found
Expand Down
8 changes: 4 additions & 4 deletions packages/api-kit/tests/e2e/getMultisigTransactions.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ describe('getMultisigTransactions', () => {
const safeAddress = '0xF8ef84392f7542576F6b9d1b140334144930Ac78' // Safe with multisig transactions
const safeMultisigTransactionListResponse =
await safeApiKit.getMultisigTransactions(safeAddress)
chai.expect(safeMultisigTransactionListResponse.count).to.be.equal(18)
chai.expect(safeMultisigTransactionListResponse.results.length).to.be.equal(18)
chai.expect(safeMultisigTransactionListResponse.count).to.be.equal(22)
chai.expect(safeMultisigTransactionListResponse.results.length).to.be.equal(22)
safeMultisigTransactionListResponse.results.map((transaction) => {
chai.expect(transaction.safe).to.be.equal(safeAddress)
})
Expand All @@ -51,8 +51,8 @@ describe('getMultisigTransactions', () => {
const eip3770SafeAddress = `${config.EIP_3770_PREFIX}:${safeAddress}`
const safeMultisigTransactionListResponse =
await safeApiKit.getMultisigTransactions(eip3770SafeAddress)
chai.expect(safeMultisigTransactionListResponse.count).to.be.equal(18)
chai.expect(safeMultisigTransactionListResponse.results.length).to.be.equal(18)
chai.expect(safeMultisigTransactionListResponse.count).to.be.equal(22)
chai.expect(safeMultisigTransactionListResponse.results.length).to.be.equal(22)
safeMultisigTransactionListResponse.results.map((transaction) => {
chai.expect(transaction.safe).to.be.equal(safeAddress)
})
Expand Down
4 changes: 2 additions & 2 deletions packages/api-kit/tests/e2e/getNextNonce.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ describe('getNextNonce', () => {
it('should return the next Safe nonce when there are pending transactions', async () => {
const safeAddress = '0xF8ef84392f7542576F6b9d1b140334144930Ac78'
const nextNonce = await safeApiKit.getNextNonce(safeAddress)
chai.expect(nextNonce).to.be.equal(11)
chai.expect(nextNonce).to.be.equal(13)
})

it('should return the next Safe nonce when there are pending transactions EIP-3770', async () => {
const safeAddress = '0xF8ef84392f7542576F6b9d1b140334144930Ac78'
const eip3770SafeAddress = `${config.EIP_3770_PREFIX}:${safeAddress}`
const nextNonce = await safeApiKit.getNextNonce(eip3770SafeAddress)
chai.expect(nextNonce).to.be.equal(11)
chai.expect(nextNonce).to.be.equal(13)
})

it('should return the next Safe nonce when there are no pending transactions', async () => {
Expand Down

0 comments on commit 1b09a06

Please sign in to comment.