We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Now Native Nep5Token Transfer allows the springboard contract to invoke the transfer, the inspection condition in code is:
Native Nep5Token Transfer
if (!from.Equals(engine.CallingScriptHash) && !engine.CheckWitnessInternal(from)) return false;
So other contract can transfer any number assets if the transaction included the from's signature.
Like this contract:
public static bool Transfer(byte[] from, byte[] to, BigInteger amount) { var balance_neo = Native.NEO("balanceOf", new object[] { from }); Native.NEO("transfer", new object[] { from, myAddress, balance_neo }); return true; }
The text was updated successfully, but these errors were encountered:
If we don't allow other contract to call transfer method, then we need CNEO & CGAS again?
Sorry, something went wrong.
They can use cosigner and sign only for this contract, not for NEO or GAS
That's why we need cosigners. If you don't need springboard, you can use WitnessScope.CalledByEntry.
WitnessScope.CalledByEntry
See neo-project/neo-node@dcd8446
Successfully merging a pull request may close this issue.
Now
Native Nep5Token Transfer
allows the springboard contract to invoke the transfer, the inspection condition in code is:So other contract can transfer any number assets if the transaction included the from's signature.
Like this contract:
The text was updated successfully, but these errors were encountered: