CRYPTO NEWS

How to pass an array as an input parameter in a function in vyper?

Let’s say I have a function and I want to pass my_array as an input parameter, how do I do that in vyper?

This is an example, but it throws a compiler error.

def my_func(my_array: uint256[]):   pass 

How to pass an array as an input parameter in a function in vyper?

Shopping cart
There are no products in the cart!
Continue shopping
0