cadence icon indicating copy to clipboard operation
cadence copied to clipboard

error: missing value for member `getEpoch`

Open pgebheim opened this issue 3 years ago • 1 comments

Problem

blocto is trying to run this script:

import BloctoTokenStaking from 0x6e0797ac987005f5

pub fun main(): UInt64 {
    return BloctoTokenStaking.getEpoch()
}

they get this error:

:x: Invalid argument: failed to execute script: failed to execute script at block (95b8a59e3d382ac68fd198966f09d36591eb587273467ce35543d1eae7f5e072): [Error Code: 1101] cadence runtime error Execution failed:
error: missing value for member `getEpoch`
 --> 2fa669ef7fce4635138cf632580cc040abbc5ac5f3a149b1e80ed0583c7e0a00:5:11
  |
5 |     return BloctoTokenStaking.getEpoch()
  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^

:pray: Check your argument and flags value, you can use --help.

Checking the contract, that function seems to be there: https://flow-view-source.com/testnet/account/0x6e0797ac987005f5/contract/BloctoTokenStaking

More information

  • There is a flow-go remote script debug setup in the branch here: janez/debug-blocto-09052022

pgebheim avatar May 09 '22 20:05 pgebheim

Blocto reported that they have updated a couple of times since the initial deploy.

pgebheim avatar May 10 '22 02:05 pgebheim

Not reported since, working after contract redeployment, closing

j1010001 avatar Oct 19 '22 17:10 j1010001