Skip to content

Commit

Permalink
removed second mint from abi
Browse files Browse the repository at this point in the history
  • Loading branch information
ignaciosantise committed Sep 18, 2023
1 parent b452a60 commit cb4dcd7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
13 changes: 9 additions & 4 deletions dapps/ModalEthers/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -136,16 +136,21 @@ function App(): JSX.Element {
};

const onWriteContract = async () => {
if (!client) {
return;
}

const [address] = await client.listAccounts();
const signer = client.getSigner(address);

const contract = new ethers.Contract(
ContractUtils.contractAddress,
ContractUtils.goerliABI,
client,
signer,
);

// Write contract
console.log(contract);
const receipt = await contract.mint();
const hash = receipt.transactionHash;
const hash = receipt.hash;
console.log('receipt', receipt);
return {
method: 'write contract',
Expand Down
7 changes: 0 additions & 7 deletions dapps/ModalEthers/src/utils/ContractUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,13 +93,6 @@ const goerliABI = [
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [{internalType: 'uint256', name: 'tokenId', type: 'uint256'}],
name: 'mint',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [],
name: 'name',
Expand Down

0 comments on commit cb4dcd7

Please sign in to comment.