abstract_interface.sol 356 B

1234567891011
  1. abstract contract A {
  2. function v(int) public virtual;
  3. }
  4. contract C {
  5. function t(address id) public {
  6. A.v{program_id: id}(1);
  7. }
  8. }
  9. // ---- Expect: diagnostics ----
  10. // error: 6:3-25: accounts are required for calling a contract. You can either provide the accounts with the {accounts: ...} call argument or change this function's visibility to external