#A way to see a contract operations from outside, JS SDK

8 messages · Page 1 of 1 (latest)

placid meadow
#

depending on what do you mean by 'operations' here. simulating a contract invocation will give you ledger changes, events, and diagnostics containing the traces of all the cross-contract call, as well as some logging.

quasi cloud
#

i'm calling a contract method using contract.call() and then building a transaction with that operation, the thing is that i need to extract the contract method name from the transaction, is there any way? i know i can get it from the operation builded with contract.call() but when i build the transaction the operation funcName is always balance_of

placid meadow
#

are you referring to JS SDK?

quasi cloud
#

yes

placid meadow
#

sorry, I'm not really familiar with it. the function name is definitely there in the transaction XDR

quasi cloud
#

it is there but it always shows balance_of instead of the name that was used in the operation created with contract.call

#

A way to see a contract operations from outside, JS SDK

placid meadow
#

maybe you should share your code...