GithubHelp home page GithubHelp logo

Comments (4)

brianlenz avatar brianlenz commented on August 17, 2024 2

I have an update! After many hours of testing and trying different things, I was able to come up with a couple of hacks that work around this issue. I'll post exact steps to reproduce the issue here, which will hopefully be helpful.

Here is the commit that works around the two issues we identified, with appropriate notes and comments:

NarrativeCompany/tokensale-neo-smartcontract@e50a00f

Here is the prior version that is broken:

https://github.com/NarrativeNetwork/tokensale-neo-smartcontract/tree/0b6bb33008a9222757fa398bdf52c70d7b4f5c23

Steps to reproduce the issue:

Edit original_owner in nrvtoken.py to be the script hash of the address you'll deploy from.

Compile and deploy ico_template.py.

Run the following to bootstrap the contract:

testinvoke {script_hash} deploy []

Then, just run any of the following to see the issue:

testinvoke {script_hash} transfer_team_tokens ['{addr}',1]
testinvoke {script_hash} transfer_company_tokens ['{addr}',1]
testinvoke {script_hash} mint_rewards_tokens ['{addr}',1]

You can use any address for {addr}; it's just the destination address where the tokens will be minted to.

Then, try again with the updated version:

https://github.com/NarrativeNetwork/tokensale-neo-smartcontract/tree/master

You should see that it works properly after the changes.

from neo-boa.

thdxr avatar thdxr commented on August 17, 2024

I'm running into this problem as well. Is the issue that a function cannot call another function?

from neo-boa.

localhuman avatar localhuman commented on August 17, 2024

This should be resolved in v0.3.3

from neo-boa.

localhuman avatar localhuman commented on August 17, 2024

Going to close this one out.

from neo-boa.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.