Skip to content

Commit

Permalink
Refactor command name
Browse files Browse the repository at this point in the history
Add MultiSend contract to enable for trusted delegate call
  • Loading branch information
moisses89 committed Sep 26, 2024
1 parent 88849af commit 997db5e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docker/web/celery/worker/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ if [ ${RUN_MIGRATIONS:-0} = 1 ]; then
python manage.py setup_service

echo "==> $(date +%H:%M:%S) ==> Setting contracts... "
python manage.py update_safe_contracts_logo
python manage.py setup_safe_contracts
fi

echo "==> $(date +%H:%M:%S) ==> Check RPC connected matches previously used RPC... "
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from config.settings.base import STATICFILES_DIRS
from safe_transaction_service.contracts.models import Contract

TRUSTED_FOR_DELEGATE_CALL = ["MultiSendCallOnly"]
TRUSTED_FOR_DELEGATE_CALL = ["MultiSendCallOnly", "MultiSend"]


def generate_safe_contract_display_name(contract_name: str, version: str) -> str:
Expand All @@ -28,7 +28,7 @@ def generate_safe_contract_display_name(contract_name: str, version: str) -> str


class Command(BaseCommand):
help = "Update or create Safe contracts with provided logo"
help = "Create or update the Safe contracts with default data. A different logo can be provided"

def add_arguments(self, parser):
parser.add_argument(
Expand All @@ -50,7 +50,7 @@ def add_arguments(self, parser):

def handle(self, *args, **options):
"""
Command to create or update Safe contracts with provided logo.
Command to create or update Safe contracts with default data. A different contract logo can be provided.
:param args:
:param options: Safe version and logo path
Expand Down

0 comments on commit 997db5e

Please sign in to comment.