Skip to content

Commit

Permalink
🤖 Auto-formated Python code
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Mar 24, 2024
1 parent d5e8000 commit 594b821
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion backend/api_app/smartcontract/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,25 @@ class InputSerializer(serializers.Serializer):
name = serializers.CharField(allow_blank=True, required=False)
type = serializers.CharField()


class CompilerSerializer(serializers.Serializer):
version = serializers.CharField()


class OutputSerializer(serializers.Serializer):
internalType = serializers.CharField(allow_blank=True, required=False)
name = serializers.CharField(allow_blank=True, required=False)
type = serializers.CharField()


class ABIJSONSerializer(serializers.Serializer):
inputs = InputSerializer(many=True)
name = serializers.CharField(required=False, allow_blank=True)
name = serializers.CharField(required=False, allow_blank=True)
outputs = OutputSerializer(many=True)
stateMutability = serializers.CharField()
type = serializers.CharField()


class MethodSerializer(serializers.Serializer):
inputs = InputSerializer(many=True)
name = serializers.CharField(required=False, allow_blank=True)
Expand Down
2 changes: 1 addition & 1 deletion backend/api_app/smartcontract/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from authentication.organizations.permissions import IsMember

from .models import SmartContract
from .serializers import ABIJSONSerializer, SmartContractSerializer
from .serializers import SmartContractSerializer


class SmartContractViewSet(viewsets.ModelViewSet):
Expand Down

0 comments on commit 594b821

Please sign in to comment.