Skip to content

Commit

Permalink
Switch to OP Sepolia (#38)
Browse files Browse the repository at this point in the history
* feat: Switch to OP Sepolia

* fix: Switch to OP Sepolia

* fix: link OP sepolia

---------

Co-authored-by: theocdl <theo.claudel@edu.ece.fr>
  • Loading branch information
theocdl and theocdl authored Mar 29, 2024
1 parent 5b937cc commit 4d66588
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://ethereum-sepolia.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/tx/${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/tx/${payReceipt.hash}`
console.log(message)
}
} catch (error) {
Expand Down

0 comments on commit 4d66588

Please sign in to comment.