Skip to content

Commit

Permalink
chore: linter
Browse files Browse the repository at this point in the history
  • Loading branch information
hugomrdias committed Jun 14, 2024
1 parent 729e5a7 commit 7192f7e
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions examples/fil-forwarder-viem/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ async function transfer(
const contract = getContract({
address: filForwarderMetadata.contractAddress,
abi: filForwarderMetadata.abi,
publicClient,
walletClient: metaMaskClient,
client: publicClient,
// walletClient: metaMaskClient,
})

// Call the FilForwarder contract's forward method to make the transfer
Expand All @@ -76,9 +76,11 @@ interface FormElements extends HTMLFormControlsCollection {
recipient: HTMLInputElement
}

const form = document.querySelector('#transfer-form')
const txLink = document.querySelector('#tx-link')
const submitButton = document.querySelector('#submit-button')
const form = document.querySelector('#transfer-form') as HTMLFormElement
const txLink = document.querySelector('#tx-link') as HTMLAnchorElement
const submitButton = document.querySelector(
'#submit-button'
) as HTMLButtonElement

form?.addEventListener('submit', (event) => {
// Prevent navigation on submit
Expand Down

0 comments on commit 7192f7e

Please sign in to comment.