-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
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
[Framework Add] implement payable #990
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, currently it is more informal
onNEP11PaymentMethod.Parameters[0].Type == ContractParameterType.Hash160 && | ||
onNEP11PaymentMethod.Parameters[1].Type == ContractParameterType.Integer && | ||
onNEP11PaymentMethod.Parameters[2].Type == ContractParameterType.Any; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Parameter names should also be checked, they are a part of the standard. Take a look at https://github.com/nspcc-dev/neo-go/blob/319880e2014ebbe8abd8ce58dcf212869c22604b/pkg/smartcontract/manifest/standard/comply.go#L68.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can be very strict, maybe we want to call to our token myTokenId
, I think that names are not needed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@roman-khimov, what do you think?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm thinking of transfer(to Hash160, from Hash160, amount Integer, id ByteString, _ Any)
and Comply()
preventing it.
...eo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_SupportedStandard11Payable.cs
Outdated
Show resolved
Hide resolved
tests/Neo.SmartContract.Framework.TestContracts/Contract_SupportedStandard11Payable.cs
Outdated
Show resolved
Hide resolved
tests/Neo.SmartContract.Framework.TestContracts/Contract_SupportedStandard17Payable.cs
Outdated
Show resolved
Hide resolved
Weird, test runs OK on my macos |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the PR still blocked? What are the plans?
Let's wait for merge the proposal |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wait for merge the proposal
This pr focus on implement NEP11 and NEP17 callback standards.
Wait for neo-project/proposals#169