From 6d395228f1d6826c09d6f540c61d36ca277379ce Mon Sep 17 00:00:00 2001 From: Herr Seppia Date: Tue, 20 Aug 2024 15:07:59 +0200 Subject: [PATCH] rusk: GQL - revert changes in 5112f66 - rename `contract` back to `contractId` - rename `fnArgs` back to `data` --- rusk/src/lib/http/chain/graphql/data.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/rusk/src/lib/http/chain/graphql/data.rs b/rusk/src/lib/http/chain/graphql/data.rs index dac60b90aa..8c6cbe63f2 100644 --- a/rusk/src/lib/http/chain/graphql/data.rs +++ b/rusk/src/lib/http/chain/graphql/data.rs @@ -260,16 +260,16 @@ impl Transaction<'_> { pub async fn call_data(&self) -> Option { self.0.inner.call().map(|call| CallData { - contract: hex::encode(call.contract), + contract_id: hex::encode(call.contract), fn_name: call.fn_name.clone(), - fn_args: hex::encode(&call.fn_args), + data: hex::encode(&call.fn_args), }) } } #[derive(SimpleObject)] pub struct CallData { - contract: String, + contract_id: String, fn_name: String, - fn_args: String, + data: String, }