Skip to content

Commit

Permalink
Fixed Json parameters for contract run command (#308)
Browse files Browse the repository at this point in the history
  • Loading branch information
cschuchardt88 authored Nov 8, 2023
1 parent 3224d37 commit 85406ed
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/neoxp/TransactionExecutor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,14 @@ static ContractParameter ConvertArg(string arg, ContractParameterParser parser)
};
}

return parser.ParseParameter(arg);
try
{
return parser.ParseParameter(JToken.Parse(arg));
}
catch
{
return parser.ParseParameter(arg);
}
}
}

Expand Down

0 comments on commit 85406ed

Please sign in to comment.