Rust-sdk, calling external contract, type arguments, error: "FAILED_TO_DESERIALIZE_ARGUMENT" #137
-
Hello everyone! First, this is payload for real transaction (as an example):
I fill args and type args with values and construct payload:
Payload looks like that (I formatted the output to make it more readable):
Then I send transaction to simulation and get the error:
I suppose, there is something wrong with parameters. I am surprised, how type arguments turned out into json structures. Maybe there's an error? Longer example of code is here:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Haven't looked too closely, but at first glance it seems like in the real txn
^ the second parameter is a vector where as your code does not match that structure
|
Beta Was this translation helpful? Give feedback.
-
Thank you. I got it. I had considered this option before, but made two mistakes. First, there is indeed a vector there ( |
Beta Was this translation helpful? Give feedback.
Haven't looked too closely, but at first glance it seems like in the real txn
^ the second parameter is a vector
where as your code does not match that structure
args: [[128, 150, 152, 0, 0, 0, 0, 0], [224, 15, 151, 0, 0, 0, 0, 0], [5]]