FuelLabs / fuels-rs

Fuel Network Rust SDK
https://fuellabs.github.io/fuels-rs
Apache License 2.0
44.04k stars 1.34k forks source link

detect whether a script tx is a contract call / is a loader script #1541

Open segfault-magnet opened 6 days ago

segfault-magnet commented 6 days ago

given a raw script tx, we should provide helpers to determine whether that script was a contract call and to which contract.

Ideally, given the ABI, we should also help the user decode the function arguments.

We should also detect if it was a loader script and what is the blob id.

Should handle multicalls.