Skip to content

Commit

Permalink
Merge branch 'workshop-without-biconomy' into workshop-with-biconomy
Browse files Browse the repository at this point in the history
  • Loading branch information
livingrock7 committed Jun 14, 2021
2 parents 2f07f85 + 2ad6a83 commit 546b709
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion react-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"@biconomy/mexa": "^2.0.9",
"@material-ui/core": "^4.9.0",
"@testing-library/jest-dom": "^4.2.4",
"@testing-library/react": "^9.3.2",
Expand Down
4 changes: 1 addition & 3 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, biconomy;
let web3, walletWeb3;
let contract;

const useStyles = makeStyles((theme) => ({
Expand Down Expand Up @@ -182,14 +182,12 @@ function App() {
setNewQuote(event.target.value);
};


const onSubmit = async (event) => {
if (newQuote != "" && contract) {
setTransactionHash("");
if (metaTxEnabled) {
let tx = contract.methods.setQuote(newQuote).send({
from: selectedAddress,
signatureType: biconomy.EIP712_SIGN,
});

tx.on("transactionHash", function (hash) {
Expand Down

0 comments on commit 546b709

Please sign in to comment.