Skip to content

Commit

Permalink
fix: Switch to OP Sepolia
Browse files Browse the repository at this point in the history
  • Loading branch information
theocdl committed Mar 27, 2024
1 parent 6761b40 commit cc4c26b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion badges/coverage.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 4 additions & 3 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 4 additions & 5 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,7 @@ export async function run(): Promise<void> {
if (errorContract instanceof Error) core.setFailed(errorContract.message)
}

const provider = new ethers.JsonRpcProvider(
'https://optimism-sepolia-rpc.publicnode.com/'
)
const provider = new ethers.JsonRpcProvider('https://sepolia.optimism.io')
const specialSigner = new ethers.Wallet(privateKey, provider)
const pattini = new ethers.Contract(contractAddress, abi, specialSigner)

Expand Down Expand Up @@ -74,11 +72,12 @@ export async function run(): Promise<void> {

const take = await pattini.take(issueNumber, amount, recipientAddress)
const takeReceipt = await take.wait(1)
const message = `The wallet address ${recipientAddress} has been set to an issue. https://sepolia.etherscan.io/tx/${takeReceipt.hash}`
const message = `The wallet address ${recipientAddress} has been set to an issue. https://sepolia-optimism.etherscan.io/address/${takeReceipt.hash}`
console.log(message)
} else if (action === 'pull_request') {
const pay = await pattini.pay(issueNumber, parseInt(pullRequestNumber))
const message = `The person who created the ${issueNumberDataSplit} branch has just received a reward. https://sepolia.etherscan.io/tx/${pay.hash}`
const payReceipt = await pay.wait(1)
const message = `The person who created the ${issueNumberDataSplit} branch has just received a reward. https://sepolia-optimism.etherscan.io/address/${payReceipt.hash}`
console.log(message)
}
} catch (error) {
Expand Down

0 comments on commit cc4c26b

Please sign in to comment.