Reference List from another Smart Contract
Description and walkthrough for referencing the address List in another smart contract
Download the Decentralist Interface here, save to your project repo and import the interface into your smart contract
Declare a list variable for the specific List smart contract address wrapped in the Decentralist Interface
Call the onList() function on the list variable with the address to lookup. This will return a bool whether the address is currently on the List.
See the below example contract which stores a vote if msg.sender is on a fictitious Voter Whitelist:
Last updated