Skip to content
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

Add a analyzer to analyze bad tx-file and give detailed reasons #154

Merged
merged 4 commits into from
Feb 12, 2025

Conversation

mohanson
Copy link
Collaborator

For example, if a cell dep is used in a transaction that is not provided in mock_info, the analyzer will return an error

Check Fail: json["tx"]["cell_deps"][0] used unprovided cell dep

@mohanson mohanson requested a review from XuJiandong February 12, 2025 01:05
@XuJiandong
Copy link
Collaborator

try https://github.com/nervosnetwork/ckb-js-vm/blob/main/tests/ckb_js_tests/templates/syscall.json
it reports that

Error: Check Fail: json["mock_info"]["inputs"][0]["header"] is not a legal hex string

@mohanson mohanson merged commit b085a00 into nervosnetwork:develop Feb 12, 2025
2 checks passed
@mohanson mohanson deleted the update branch February 12, 2025 06:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants