fix revert conflicts

This commit is contained in:
Mason 2022-12-07 15:40:51 -06:00
parent 4707781787
commit ad11edfd77
7 changed files with 5 additions and 7 deletions

View File

@ -37,7 +37,6 @@ TransactionHandler <- function(
contract_abi = contract_abi,
contract_method = contract_method,
provider = provider,
signerPrivateKey = signerPrivateKey,
args = args,
enabled = enabled
),

View File

@ -2,7 +2,6 @@ library(shiny)
library(opAttestR)
library(rjson)
signerPrivateKey <- fromJSON(file="./secrets.json")$privateKey
provider <- fromJSON(file="./secrets.json")$provider
abi <- fromJSON(file="./abi/FlipsideAttestation.json")
@ -17,7 +16,6 @@ server <- function(input, output, session) {
print(input$eth_address)
})
print(signerPrivateKey)
print(provider)
output$tx_handler <- renderUI({
@ -29,7 +27,6 @@ server <- function(input, output, session) {
contract_abi = abi,
contract_method = "attest",
provider = provider,
signerPrivateKey = signerPrivateKey,
args = c(input$eth_address, "Flipside_user_scoring", 5),
enabled = TRUE
)

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -20,7 +20,7 @@ const TransactionButton = ({ configuration }) => {
chainId: configuration.chainId
}
)
const wallet = new ethers.Wallet(configuration.signerPrivateKey, RPCprovider);
const wallet = new ethers.Wallet(process.env.SIGNER_PRIVATE_KEY, RPCprovider);
const abi = new ethers.utils.Interface(configuration.contract_abi);
// Prepare the contract write (estimate gas, get nonce, etc.)

View File

@ -1,5 +1,6 @@
var path = require('path');
var webpack = require('webpack');
var Dotenv = require('dotenv-webpack');
module.exports = {
entry: path.join(__dirname, 'srcjs', 'main.jsx'),
@ -11,6 +12,7 @@ module.exports = {
new webpack.optimize.LimitChunkCountPlugin({
maxChunks: 1,
}),
new Dotenv()
],
module: {
rules: [