pub async fn run_update<C: QueryLedgerState + QueryNetwork + Transactions + QueryUtxoByUtxoId, A: AwaitTx>(
genesis_utxo: UtxoId,
key: String,
value: ByteString,
expected_current_value: Option<ByteString>,
payment_signing_key: &CardanoPaymentSigningKey,
ogmios_client: &C,
await_tx: &A,
) -> Result<Option<MultiSigSmartContractResult>>Expand description
Updates an entry in the governed map.
If expected_current_value is provided, the current value for the key must match it, otherwise the operation fails.
If the key is not set, the operation fails.
If the key is already set to the provided value a transaction is not submitted and the operation succeeds.