Skip to content

Commit

Permalink
rusk: GQL - revert changes in 5112f66
Browse files Browse the repository at this point in the history
- rename `contract` back to `contractId`
- rename `fnArgs` back to `data`
  • Loading branch information
herr-seppia committed Aug 20, 2024
1 parent e5f6395 commit 6d39522
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions rusk/src/lib/http/chain/graphql/data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -260,16 +260,16 @@ impl Transaction<'_> {

pub async fn call_data(&self) -> Option<CallData> {
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,
}

0 comments on commit 6d39522

Please sign in to comment.