Skip to content

Commit

Permalink
Remove RPC from playground config and use fixed sepolia one
Browse files Browse the repository at this point in the history
  • Loading branch information
yagopv committed May 6, 2024
1 parent b6ec4c8 commit cf5b5ee
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
7 changes: 4 additions & 3 deletions playground/relay-kit/paid-transaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,11 @@ import { ethers } from 'ethers'
// https://goerli.etherscan.io/tx/<TRANSACTION_HASH>

const config = {
SAFE_SIGNER_PRIVATE_KEY: '<SAFE_SIGNER_PRIVATE_KEY>',
RPC_URL: 'https://goerli.infura.io/v3/<INFURA_API_KEY>'
SAFE_SIGNER_PRIVATE_KEY: '<SAFE_SIGNER_PRIVATE_KEY>'
}

const RPC_URL = 'https://rpc.ankr.com/eth_sepolia'

const mockOnRampConfig = {
ADDRESS: '<ADDRESS>',
PRIVATE_KEY: '<PRIVATE_KEY>'
Expand All @@ -38,7 +39,7 @@ async function main() {
// SDK Initialization

const safeAccountAbstraction = new AccountAbstraction({
provider: config.RPC_URL,
provider: RPC_URL,
signer: config.SAFE_SIGNER_PRIVATE_KEY
})

Expand Down
5 changes: 3 additions & 2 deletions playground/relay-kit/sponsored-transaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,11 @@ import { ethers } from 'ethers'

const config = {
SAFE_SIGNER_PRIVATE_KEY: '<SAFE_SIGNER_PRIVATE_KEY>',
RPC_URL: 'https://goerli.infura.io/v3/<INFURA_API_KEY>',
RELAY_API_KEY: '<GELATO_RELAY_API_KEY>'
}

const RPC_URL = 'https://rpc.ankr.com/eth_sepolia'

const mockOnRampConfig = {
ADDRESS: '<ADDRESS>',
PRIVATE_KEY: '<PRIVATE_KEY>'
Expand All @@ -39,7 +40,7 @@ async function main() {
// SDK Initialization

const safeAccountAbstraction = new AccountAbstraction({
provider: config.RPC_URL,
provider: RPC_URL,
signer: config.SAFE_SIGNER_PRIVATE_KEY
})

Expand Down

0 comments on commit cf5b5ee

Please sign in to comment.