Skip to content

Commit

Permalink
feat: extract_contract_call_data function pub modifier (#1553)
Browse files Browse the repository at this point in the history
# 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<u8>`) 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 <[email protected]>
  • Loading branch information
zees-dev and zees-dev authored Dec 10, 2024
1 parent f989679 commit 9e2aae4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/fuels-programs/src/calls/receipt_parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ impl ReceiptParser {
)
}

fn extract_contract_call_data(&mut self, target_contract: ContractId) -> Option<Vec<u8>> {
pub fn extract_contract_call_data(&mut self, target_contract: ContractId) -> Option<Vec<u8>> {
// If the script contains nested calls, we need to extract the data of the top-level call
let mut nested_calls_stack = vec![];

Expand Down

0 comments on commit 9e2aae4

Please sign in to comment.