-
Notifications
You must be signed in to change notification settings - Fork 82
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
Refactor: replace 'HexUtils' with lumos functionalities #2718
Conversation
Packaging for test is done in 5250939911 for commit 6b9637d . |
Packaging for test is done in 5250945890 for commit 6b68024 . |
Packaging for test is done in 5251157001 for commit 8bdb537 . |
There are some |
Good advice about the |
The const receiverLockHash = bytify(chequeLockArgs).slice(0, 20)
const senderLockHash = bytify(chequeLockArgs).slice(20)
infos.find((info) => {
const target = bytify(SystemScriptInfo.generateSecpScript(info.blake160).computeHash()).slice(0, 20);
return equal(target, senderLockHash) || equal(target, receiverLockHash)
}) |
This is comprehensive but it's assuming that the input param |
Seems not easy to do so, as described in previous comment, the input param |
in this commit I have removed the |
Packaging for test is done in 5255925402 for commit 16a7700 . |
Packaging for test is done in 5256989537 for commit afb1839 . |
Packaging for test is done in 5297858260 for commit 0b29647 . |
Packaging for test is done in 5301095593 for commit 66c19b9 . |
Packaging for test is done in 5307543220 for commit 72741e4 . |
Sorry I didn't notice that all commits should be "Verified", so I squashed all commits and signed it with my GPG key, then the squashed commit needs to be force pushed, will sign every commit in future. |
Packaging for test is done in 5307915541 for commit f601d45 . |
Packaging for test is done in 5307929099 for commit e07c29d . |
The conflicts are waiting for resolved |
Packaging for test is done in 5369142913 for commit f1bfe29 . |
Packaging for test is done in 5369157237 for commit 3605640 . |
Packaging for test is done in 5369463207 for commit 65eb36b . |
Packaging for test is done in 5373006588 for commit 6b724e1 . |
@zhangyouxin |
This PR has changed some low level function dependencies, mostly used in the |
Packaging for test is done in 5384478240 for commit 4da3f2b . |
after using asset account do transaction. seems transaction detail did't match trans amount. @zhangyouxin add hash |
@zhangyouxin any update of this ? |
/package |
I have merged develop branch, tested the feature on local machine and didn't meet the issue, is there more detail of condition to trigger the two issues? btw I found another issue which may not be introduced by this PR: Magickbase/neuron-public-issues#222 |
After confirmation with @FrederLu , we found that in this transaction, the user business is extracting 9999 sUDT from a cell with ACP lock. So both sudt receive amount and CKB change amount are correct value here. |
Description
This PR replaces some hexutil functions with
@ckb-lumos/code
and@ckb-lumos/bi
, they are more tested and reliable.Ref: Magickbase/neuron-public-issues#187