-
Notifications
You must be signed in to change notification settings - Fork 1k
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
CheckWitness on invokescript (2.x) #1418
CheckWitness on invokescript (2.x) #1418
Conversation
I made some quick review with meevee98, FYI the relevant changes are on RpcServer file, the other changes are only to prettify the code |
Here's my test result:
I find |
You should make it like this:
|
e9b5713
to
7fe22c9
Compare
I've updated the code |
In the future, can we avoid making unrelated formatting improvements in PRs like this? As far as I can tell, only one of the 26 files updated by this PR is related to the behaviour change. The other 25 appear to be whitespace formatting updates. That makes it much harder to review the PR. |
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.
- Made witness included tx, take its script as a param of
invokescript
and input correct and incorrect bigend scripthash of address for check. Correct address returnedHALT
and incorrect address returnedFAULT
. [Pass] - Made bigend scripthash of address as the latest param into
invokefunction
andinvoke
, executedeploy
andtransfer
methods of SC, no negative effect appeared. [Pass]
Test Result: PASS
7fe22c9
to
5f37d4b
Compare
I've rebased this branch into the latest changes of master-2.x. |
Because in 2x there are no travis anymore, could you remove the format changes in order to make the review easier? |
Sure, no problem |
Port of #1122 to 2.x