From 9e2aae4c19d7860dd7de387a37d3f239bec5fa9a Mon Sep 17 00:00:00 2001 From: zees-dev <63374656+zees-dev@users.noreply.github.com> Date: Tue, 10 Dec 2024 23:26:33 +1300 Subject: [PATCH] feat: `extract_contract_call_data` function pub modifier (#1553) # Summary Made the `extract_contract_call_data` function public in the `ReceiptParser` struct to allow external access to the function. This is required to construct low-level calls if you dont want to use `CallHandler` and instead want to manually deal with the low-level bytes (`Vec`) data. # Checklist - [ ] All **changes** are **covered** by **tests** (or not applicable) - [x] All **changes** are **documented** (or not applicable) - [x] I **reviewed** the **entire PR** myself (preferably, on GH UI) - [x] I **described** all **Breaking Changes** (or there's none) Co-authored-by: zees-dev --- packages/fuels-programs/src/calls/receipt_parser.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/fuels-programs/src/calls/receipt_parser.rs b/packages/fuels-programs/src/calls/receipt_parser.rs index fb98fd890b..7027ea9d30 100644 --- a/packages/fuels-programs/src/calls/receipt_parser.rs +++ b/packages/fuels-programs/src/calls/receipt_parser.rs @@ -59,7 +59,7 @@ impl ReceiptParser { ) } - fn extract_contract_call_data(&mut self, target_contract: ContractId) -> Option> { + pub fn extract_contract_call_data(&mut self, target_contract: ContractId) -> Option> { // If the script contains nested calls, we need to extract the data of the top-level call let mut nested_calls_stack = vec![];