Skip to content

Commit

Permalink
use provider (#348)
Browse files Browse the repository at this point in the history
  • Loading branch information
seaona authored Jun 18, 2024
1 parent c785ace commit 54e4013
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1274,7 +1274,7 @@ const initializeFormElements = () => {
const nftsContractAddress = nftsContract.address;
let watchNftsResult;
try {
watchNftsResult = await ethereum.sendAsync(
watchNftsResult = await provider.sendAsync(
Array.from({ length: currentTokenId }, (_, i) => i + 1).map(
(tokenId) => {
return {
Expand Down Expand Up @@ -1508,7 +1508,7 @@ const initializeFormElements = () => {

watchAssetButton.onclick = async () => {
try {
const watchAssetResult = await ethereum.request({
const watchAssetResult = await provider.request({
method: 'wallet_watchAsset',
params: {
type: 'ERC1155',
Expand Down

0 comments on commit 54e4013

Please sign in to comment.