Interfaces vy to solidity #2271
kaleb-keny
started this conversation in
General
Replies: 1 comment 9 replies
-
You can try to work around it manually using Would look something like: raw_call(
_contract,
concat(
method_id("expireMarkets(address[])"), # method id (4 bytes)
68, # offset to dynamic array in ABI-encoded data (in bytes)
32, # length of dynamic array (in bytes)
convert(_target, bytes32), # array (length 1)
),
) |
Beta Was this translation helpful? Give feedback.
9 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a question please on setting up an interface to a contract on written in solidity. So the contract i'm referring to has the the eblow solc code, on this address
0x915D1c9dF12142B535F6a7437F0196D80bCCC1BD
The issue with it, as you can it takes in as an argument an array or list without pre-defined range. The issue i'm facing when building a vy interface for it is that it's not possible from what I read to make dynamic arrays or lists. So the interface I implemented down doesn't seem to work maybe. is there like a work around possible, any example is appreciated 🙏🏼 ?
Inteface:
Beta Was this translation helpful? Give feedback.
All reactions