macro_rules! plutus_script {
($ps:expr $(,$args:expr)*) => { ... };
(@inner, $ps:expr) => { ... };
(@inner, $ps:expr, $arg:expr $(,$args:expr)*) => { ... };
}
Expand description
Applies arguments to a Plutus script. The first argument is the script, the rest of the arguments are the datums that will be applied.
- The script can be any type that implements Into
for example [raw_scripts::RawScript]. - The arguments can be any type that implements Into
. Implementations are provided for [uplc::PlutusData] and plutus::Datum. Returns anyhow::Resultuplc::PlutusData.
Example:
ⓘ
plutus_script![SOME_SCRIPT, genesis_utxo, plutus::Datum::ListDatum(Vec::new())]