Closed crosschainer closed 7 months ago
This is the example contract:
balances = Hash(default_value=0) @construct def seed(vk: str): balances['boi'] = 111_111_111 balances['bob'] = 100_000 balances['bob', 'down'] = 100_000 @export def holders(): return balances.as_dict()
When calling holders()
It will return a dict copy {'boi': 111111111, 'bob': 100000}
{'boi': 111111111, 'bob': 100000}
which then can be looped through. for example for airdrops
This is the example contract:
When calling holders()
It will return a dict copy
{'boi': 111111111, 'bob': 100000}
which then can be looped through. for example for airdrops