onflow/fcl-dev-wallet

Can't fund FCL dev wallet when running on emulator

gpavlov2016 opened this issue · 1 comments

With cli version 0.37.3, the KittyItems project experiences an error while clicking on the "FUND" button.
The problem is not reproducible with version 0.36 of the cli

To reproduce:

  • Follow the "Start in emulator" instructions on this page: https://docs.onflow.org/kitty-items/modify/
  • Open browser @ localhost:3001
  • Click on "Login" in the right top corner
  • Click on "Create a new account"
  • Click on "Manage" next to the new account
  • Click on "FUND"

The relevant step is shown in this video around time 4:20 - https://www.youtube.com/watch?v=xLRI4F6X89I

Expected result - account gets flow tokens
Actual result - no tokens are added and logs indicate an error:
|emulator | time="2022-07-13T11:05:43-04:00" level=warning msg="❗ Script reverted" scriptID=d25f3658d6f302fcb5047351d2cfdcf1d99bdf525f020becd20f784378984cdf 0|emulator | time="2022-07-13T11:05:43-04:00" level=warning msg="\x1b[1;31mERR\x1b[0m \x1b[2m[d25f36]\x1b[0m [Error Code: 1101] cadence runtime error Execution failed:\nerror: [Error Code: 1054] location (pub) is not a valid location: expecting an AddressLocation, but other location types are passed\n--> pub\n\nerror: missing access modifier for function\n --> d25f3658d6f302fcb5047351d2cfdcf1d99bdf525f020becd20f784378984cdf:3:4\n |\n3 | pub fun main(addr: Address): UFix64 {\n | ^\n\nerror: cannot find type in this scope: FungibleToken\n --> d25f3658d6f302fcb5047351d2cfdcf1d99bdf525f020becd20f784378984cdf:5:21\n |\n5 | .getCapability<&{FungibleToken.Balance}>(/public/fusdBalance)\n | ^^^^^^^^^^^^^ not found in this scope\n\nerror: ambiguous restricted type\n --> d25f3658d6f302fcb5047351d2cfdcf1d99bdf525f020becd20f784378984cdf:5:20\n |\n5 | .getCapability<&{FungibleToken.Balance}>(/public/fusdBalance)\n | ^^^^^^^^^^^^^^^^^^^^^^^\n\nerror: cannot infer type parameter: T\n --> d25f3658d6f302fcb5047351d2cfdcf1d99bdf525f020becd20f784378984cdf:4:9\n |\n4 | return getAccount(addr)\n | ^\n" 0|emulator | time="2022-07-13T11:05:43-04:00" level=info msg="⭐ Script executed" scriptID=52b9bcd485cb5f37a913feac6facb96dcdf692d3b8377d47e29d000bd93dc3e1

Waiting on flow-cli release. Will reopen if it reappears