neo-ngd / cneo-contract Goto Github PK
View Code? Open in Web Editor NEWThis project forked from chenzhitong/cneo-contract
CNEO
This project forked from chenzhitong/cneo-contract
CNEO
The error is in line: https://github.com/neo-ngd/CNEO-Contract/blob/master/NeoContract/CNEO.cs#L267
NEP-10 Specification: https://github.com/neo-project/proposals/blob/master/nep-10.mediawiki
NEP-10 Specification sample code: neo-project/proposals#40 (comment)
Was this SC code reviewed? Was it tested?
Could you provide avm file so we can test in out privatenet?
Thanks.
这里应该检查所有的outputs,只有都满足条件才将 ifClaimGas 设置为 false;否则一个output满足就可以绕过这个检查,并没修复那个漏洞。
也许可以改为:
bool ifClaimGas = false;
foreach (var output in outputs)
{
if (output.ScriptHash.AsBigInteger() != currentHash.AsBigInteger() || output.AssetId.AsBigInteger() != AssetId.AsBigInteger())
ifClaimGas = true;
Originally posted by @chenzhitong in #6 (comment)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.