Comments (4)
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:
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.
I'm running into this problem as well. Is the issue that a function cannot call another function?
from neo-boa.
This should be resolved in v0.3.3
from neo-boa.
Going to close this one out.
from neo-boa.
Related Issues (20)
- Crowdsale Demo directory shouldn't be labeled "nex" HOT 1
- Crowdsale demo and nep5 demo should be the same style HOT 1
- The method to_s(), which generates the output of the executable in readable format, is outdated
- [Feature] Use Python assert in smart contract HOT 4
- Smart Contract Migration results in different return value HOT 1
- Add support for multi-line invocation
- Neo 3x support HOT 2
- Built-in command line interface for neo-boa HOT 1
- support for avmdbgnfo format HOT 4
- replace coz-bytecode dependency with official bytecode project HOT 1
- .abi.json support HOT 3
- Python typehinting support
- About NEP-5 Smart Contract
- Generating incorrect hash for ABI file HOT 1
- Visual DevTracker deploy function not detecting contracts compiled with neo-boa
- negative shift count error when running unit test HOT 1
- Convert byte array to number ? HOT 1
- Invoking Neo.Contract.IsPayable fails HOT 1
- Crowdsale Demo totalSupply returns circulation
- Crowdsale Demo Contract missing OnTransfer event in deploy
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from neo-boa.