clbrge / svelte-web3

web3.js library integration as a Svelte store
MIT License
138 stars 32 forks source link

Module has no exported member 'contracts' #69

Open lucky-patty opened 1 year ago

lucky-patty commented 1 year ago

Sorry to open this issue again but I come across this issue when I tried to interact with the contract.

Screenshot 2566-09-05 at 01 39 26

I run the same code as the example

<script>
  import { contracts } from 'svelte-web3'

  // ...
</script>

{#await $contracts.myContract.methods.totalSupply().call()}

<span>waiting...</span>

{:then value}

<span>result of contract call totalSupply on my contract : { value } </span>

{/await}