Add support for passing traits as argument in contract call #92
Comments
For my marketplace clarity contract (https://github.com/friedger/clarity-marketplace), I am looking for information how to serialize a trait reference type. What needs to be done for |
Maybe I don't understand the question, but if you are wondering how you can call
you just pass in a |
@psq There is no client here, the issue is about how to create a transaction for a contract call with a trait as an argument that can then be broadcasted to the network. If we agree that we should just use the contract principal (constructed with
|
I'm not sure why passing in a principal works with On the other hand, making passing a |
actually, I did not realize that what I had started on would be enough to make it work, but I was also running into the same issue as described in stacks-network/stacks-core#1815. Once that other issue is fixed, it should be fairly straightforward to provide a fix. Running the test with partial fix:
So, no need for |
the fix has been merged into |
@diwakergupta yes, this could be closed (I can't), unless you'd rather wait for the fix to be available in a release. The full fix requires both stacks-network/stacks-core#1815 and stacks-network/stacks-core#1817 (both merged into next now, 1817 already in master) |
Thanks, closing! |
Should there be a method like
traitCV
?The text was updated successfully, but these errors were encountered: