graphprotocol / graphprotocol/graph-node
[Bug] Decode the input data of tx
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- Rust
- Star
- 3.2k
- Fork
- 1.1k
- Merge trung bình
- 4 ngày 1 giờ
- Pull request đã merge (30 ngày)
- 1
Mô tả
Bug report
I am trying to debug the input data from tx https://arbiscan.io/tx/0x005bc2cc2715a77d8ac20524789a99bc05ca4048a3c9d78c5ad525c7139df9cf
This is my input data which I am using to decode
00000000000000000000000000000000000000000000000000000000000065f40000000000000000000000000000000000000000000000000000000000000276000000000000000000000000000000000000000000000000000000000000010016e3850080805d39bdb096fc08bf0041480292473fadfb4c72009291f11eb15f00000000000000000000000000000000000000000000000000000000000001202beda7a630edebbcad1bc24cd1f90a077ec6cda82c3771a387de0a7d903198da0000000000000000000000000000000000000000000000000000000066e0863d00000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000603d4f93a04a08ef38ccafd24c35084ecd0007810c986f677c6631b39c871ff0284c3ce5c5e58d837242f1bac4ad70fc63a378a98b69d24aadf3f44b4fc3dabcfd1b00000000000000000000000000000000000000000000000000000000000000
let decoded = ethereum.decode(
"(uint256,uint256,uint256[],bytes32,address[],bytes32,uint64,bytes)",
tx.input
);
And here is the abi of function
{
"inputs": [
{ "internalType": "uint256", "name": "remoteChainId", "type": "uint256" },
{ "internalType": "uint256", "name": "blockNonce", "type": "uint256" },
{
"internalType": "uint256[]",
"name": "invalidBlockNonces",
"type": "uint256[]"
},
{
"internalType": "bytes32",
"name": "finalizersHash",
"type": "bytes32"
},
{
"internalType": "address[]",
"name": "finalizers",
"type": "address[]"
},
{ "internalType": "bytes32", "name": "salt", "type": "bytes32" },
{ "internalType": "uint64", "name": "expiry", "type": "uint64" },
{ "internalType": "bytes", "name": "multiSignature", "type": "bytes" }
],
"name": "finalize",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
It seems decoding is not working.
Relevant log output
No response
IPFS hash
0x005bc2cc2715a77d8ac20524789a99bc05ca4048a3c9d78c5ad525c7139df9cf
Subgraph name or link to explorer
https://api.studio.thegraph.com/query/79955/test/v0.0.61
Some information to help us out
- Tick this box if this bug is caused by a regression found in the latest release.
- Tick this box if this bug is specific to the hosted service.
- I have searched the issue tracker to make sure this issue is not a duplicate.
OS information
macOS
### Tasks
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Hướng nghiên cứu
Bắt đầu bằng cách tái hiện lệnh gọi ethereum.decode với dữ liệu giao dịch và ABI được cung cấp trong issue, đồng thời ghi lại chính xác lỗi hoặc đầu ra. So sánh dữ liệu giao dịch được cung cấp với ABI của finalize và điều tra hành vi của dịch vụ được lưu trữ. Công việc được xem là hoàn tất khi vấn đề giải mã được giải thích và một bản sửa lỗi đã được xác minh hoặc một giới hạn rõ ràng được ghi lại.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- blockchain
- Lĩnh vực
- api, blockchain
- Loại issue
- Lỗi
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Cần làm rõ
- Mức phù hợp với người mới
- 25/100