Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Jacques Wagener
    @jacqueswww
    I'm guessing you are using a testnet?
    sverzijl
    @sverzijl
    In this case I've been using main net because the risk is low
    But the transaction doesn't even get to the stage where it becomes an actual transaction
    I have been trying to interact with it via MEW but it doesn't even get to that stage - just dies with a 'transaction repeatedly failing'
    Jacques Wagener
    @jacqueswww
    but the contract deploys?
    sverzijl
    @sverzijl
    Yep
    And the kill function works
    Jacques Wagener
    @jacqueswww
    and the transferfrom works?
    sverzijl
    @sverzijl
    Yep.
    Jacques Wagener
    @jacqueswww
    has to be something missing on the mint function then, but don't think it has to do with vyper tbh
    sverzijl
    @sverzijl
    cUSDC functions all fail except when I try say 'balanceOf'
    If I do transferFrom on cUSDC it also fails
    Maybe, tomorrow morning I will try doing a different token and see what happens
    Or try using cUSDC via the ERC20 built in interface
    Because it's meant to be an ERC20 function
    Oops token
    I think half my problem is I am taking a shortcut by using vyper.online and Mew - maybe I set up something better
    One very newbie question - the logging part in the documentation - where does that actually go? Where do you see the event?
    Jacques Wagener
    @jacqueswww
    Well if the tx succesful you can query it using web3
    or use etherscan
    But that's only if it's succesful
    Sounds like the node already rejects your tx before it even hits other nodes?
    can you see your failed tx in etherscan?
    BTW you can also use https://remix.ethereum.org, this uses vyper b9
    sverzijl
    @sverzijl
    Not at all. I use MEW via metamask and it doesn't even ask me to sign the transaction. It will for other contract interactions. The same thing happens if I haven't run approve on a token for transferFrom - but in this case I've approved every permutation I can think of.
    I'll try remix tomorrow morning too
    It's like it runs some checks before it runs? Maybe to calculate gas requirement?
    Maybe it's MEW
    Jacques Wagener
    @jacqueswww
    hmmm yes I'd suggest getting testing env. up
    too many variables
    If you know python we have a nice guide for that:
    but using truffle works as well
    sverzijl
    @sverzijl
    Sounds like a plan. I'll try that.
    Hopefully the error if there is one will be less opaque
    Jacques Wagener
    @jacqueswww
    also we have assert x, "this failed"
    which helps - if the testing toolkit supports revert output
    sverzijl
    @sverzijl
    Great thanks
    Always fun learning new things
    I'll try tomorrow morning and see what happens
    Thanks for the advice
    Jacques Wagener
    @jacqueswww
    np
    Jacques Wagener
    @jacqueswww
    Also just use testnet compound exists there ;)
    Ben Hauser
    @iamdefinitelyahuman
    @jacqueswww thx :)
    Jacques Wagener
    @jacqueswww
    @sverzijl I just had an a-ha moment on why your contract probably fails.
    move the approve to the actual function?
    Bryant Eisenbach
    @fubuloubu
    Next meeting would be Sept 2nd, which is Labor Day holiday in US. Punt to Tuesday?
    Jacques Wagener
    @jacqueswww
    sure
    Charles Cooper
    @charles-cooper
    ok