Change checkUpkeep function returns arguments

48 Views Asked by At

Can I modify the returns statement to include a bool [] memory instead of just bool ?

1

There are 1 best solutions below

0
On BEST ANSWER

You cannot.

The Chainlink node is looking for a specific return type, if you change the interface the nodes won't be sure that's the function they should be calling.

That being said, you can change what checkupkeep returns, just a chainlink keeper node wouldn't be able to call checkupkeeps.