bug: fix payment check conflict and flag impact for type hash#32
Conversation
the change of |
89153b3 to
80cbd95
Compare
what does this mean? payment args is written in script args, which causes the change of type_id and cannot be altered |
55f496b to
dcdaf54
Compare
I have no questions now. |
193f215 to
c745173
Compare
c745173 to
33514c9
Compare
|
@Flouse @ShookLyngs I committed some changes, please check again, I closed the other two issues that hasn't been closed |
cf5fd9e to
01878bf
Compare
|
|
||
| - name: Prepare spore-devenv (contracts and stuff) | ||
| working-directory: spore-devenv | ||
| run: bash prepare.sh -b $GITHUB_HEAD_REF |
There was a problem hiding this comment.
| run: bash prepare.sh -b $GITHUB_HEAD_REF | |
| run: bash prepare.sh -b $GITHUB_REF |
GITHUB_HEAD_REF is the head ref or source branch of the pull request in a workflow run. This property is only set when the event that triggers a workflow run is either pull_request or pull_request_target.
Suggestions
-
Add a
pushevent for this workflow, since it only takes 10 minutes.
Running devnet test for every pushed commit is acceptable. -
use
GITHUB_REFinstead ofGITHUB_HEAD_REFGITHUB_REF: The fully-formed ref of the branch or tag that triggered the workflow run. For workflows triggered by push, this is the branch or tag ref that was pushed. For workflows triggered by pull_request, this is the pull request merge branch. For workflows triggered by release, this is the release tag created.
See https://docs.github.com/en/actions/learn-github-actions/variables
There was a problem hiding this comment.
we used $GITHUB_REF but did not get to our expectation, and for now, $GITHUB_HEAD_REF works fine for us, so it can stay as it is now
There was a problem hiding this comment.
What do you mean it did not get to our expectation?
Is there a GitHub action that contains the error?
Next time, it would be nice if you create new PR for each issue. |
| )); | ||
| ) | ||
| .map_err(|_| "mutant verify_param") | ||
| .unwrap()); |
There was a problem hiding this comment.
These changes may conflict with 1e100f6 in your another PR. You will need to resolve the conflicts later which may take more time.
Again, it is better to solve one small issue in one PR.
For now, it LGTM.
There was a problem hiding this comment.
yes, next step is to solve conflict, the time is ok
Co-authored-by: Flouse <1297478+Flouse@users.noreply.github.com>
Co-authored-by: Flouse <1297478+Flouse@users.noreply.github.com>
Description
paymentfunction needs to pin a flag inscript.argsfiled, which can impact the calculation of script hash, however, if this payment flag changed intransferoperation, we cannot just useGroupInputandGroupOutputto identify the related scripts both inInputandOutputfield, so this change of payment should be described asBurn/Mintin one transaction.when we use payment flag to check the user's payment is wether enough, since different scripts in Mutant or Proxy cell act independently, and these scripts use the same logic to run a payment check process, so, for example, if a same owner of two Mutant cells with different
mutant_iddisappeared inCellDepfield at the same time, one payment in transaction will be duplicated in use to meet this two Mutant scripts' requirement.Tasks list
minimal_paymentcondition judgement in cluster_agent and spore contract #36