Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
Daksh14 committed Dec 12, 2024
1 parent 689d386 commit bc14031
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions rusk-wallet/src/bin/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -575,10 +575,9 @@ impl Command {
}?;

let contract_id = hex::encode(contract_id);
let fn_args = hex::encode(fn_args);

let http_call = wallet
.http_contract_call(contract_id, &fn_name, &fn_args)
.http_contract_call(contract_id, &fn_name, fn_args)
.await?;

let http_call = if let Some(x) = http_call {
Expand Down
4 changes: 2 additions & 2 deletions rusk-wallet/src/wallet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -628,13 +628,13 @@ impl<F: SecureWalletFile + Debug> Wallet<F> {
&self,
contract_id: String,
fn_name: &str,
fn_args: &str,
fn_args: Vec<u8>,
) -> Result<Option<u32>, Error> {
let client = self.state()?.client();

// query the rusk vm
let response = client
.call("contracts", Some(contract_id), fn_name, fn_args.as_bytes())
.call("contracts", Some(contract_id), fn_name, &fn_args)
.await?;

if !response.is_empty() {
Expand Down

0 comments on commit bc14031

Please sign in to comment.