Skip to content
This repository has been archived by the owner on Jul 11, 2023. It is now read-only.

Interface formatting #3

Open
iamdefinitelyahuman opened this issue Nov 2, 2020 · 1 comment
Open

Interface formatting #3

iamdefinitelyahuman opened this issue Nov 2, 2020 · 1 comment

Comments

@iamdefinitelyahuman
Copy link

blackadder currently handles interfaces as though they are class methods:

  • the mutability is placed on a new line below the function selector
  • a blank line is left between each function definition
interface Foo:
    def bar(a: uint256, b: uint256):
        view

    def baz(a: address):
        nonpayable

I think in this case, a more succinct format is actually more readable. Each function definition should be placed on a single line where possible, and there should not be a blank line between functions:

interface Foo:
    def bar(a: uint256, b: uint256): view
    def baz(a: address): nonpayable
@spinoch
Copy link
Contributor

spinoch commented Nov 11, 2020

It probably also makes sense to implement #7 before we work on this

@spinoch spinoch mentioned this issue Nov 11, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants