(&self, reducer: &str, args: &sats::ProductValue)
| 89 | } |
| 90 | |
| 91 | pub async fn call_reducer_json(&self, reducer: &str, args: &sats::ProductValue) -> anyhow::Result<()> { |
| 92 | let args = serde_json::to_string(&args).unwrap(); |
| 93 | self.call_reducer(reducer, FunctionArgs::Json(args.into())).await |
| 94 | } |
| 95 | |
| 96 | pub async fn call_reducer_binary(&self, reducer: &str, args: &sats::ProductValue) -> anyhow::Result<()> { |
| 97 | let args = bsatn::to_vec(&args).unwrap(); |