Skip to content

Commit

Permalink
add biconomy var
Browse files Browse the repository at this point in the history
  • Loading branch information
livingrock7 committed Jun 14, 2021
1 parent cd69c6f commit 683d303
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions react-ui/src/components/Web3_EIP2771_EIP712Sign.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ let config = {
},
};

let web3, walletWeb3;
let web3, walletWeb3, biconomy;
let contract;

const useStyles = makeStyles((theme) => ({
Expand Down Expand Up @@ -188,6 +188,7 @@ function App() {
if (metaTxEnabled) {
let tx = contract.methods.setQuote(newQuote).send({
from: selectedAddress,
signatureType: biconomy.EIP712_SIGN
});

tx.on("transactionHash", function (hash) {
Expand Down Expand Up @@ -344,13 +345,6 @@ function App() {
<Button variant="contained" color="primary" onClick={onSubmit}>
Submit
</Button>
<Button
variant="contained"
color="primary"
onClick={onSubmitWithPrivateKey}
style={{ marginLeft: "10px" }}>
Submit (using private key)
</Button>
</div>
</div>
</section>
Expand Down

0 comments on commit 683d303

Please sign in to comment.