auth.sol 406 B

12345678910111213141516171819
  1. /// SPDX-License-Identifier: Apache-2.0
  2. contract auth {
  3. // Only this address can call the increment function
  4. address public owner = address"GDRIX624OGPQEX264NY72UKOJQUASHU3PYKL6DDPGSTWXWJSBOTR6N7W";
  5. uint64 public instance counter = 20;
  6. function increment() public returns (uint64) {
  7. owner.requireAuth();
  8. counter = counter + 1;
  9. return counter;
  10. }
  11. }