Skip to content

Commit

Permalink
Fix hook
Browse files Browse the repository at this point in the history
  • Loading branch information
tupui committed Jul 25, 2024
1 parent 50b73dc commit bed45ee
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pre-commit/soroban_versioning_pre_push.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
e.g. of project key
```
9afcde4ad92b1d44e7457bf380cbb0f8ef1eb3f3517ee7b72f43beb7c3bc02ac
37ae83c06fde1043724743335ac2f3919307892ee6307cce8c0c63eaa549e156
```
"""

Expand All @@ -31,13 +31,12 @@ def main():
.stdout.decode()
.split("\n")[0]
)
commit_hash = bytes.fromhex(commit_hash)

source_account = soroban.Identity()
args = [
{"name": "maintainer", "type": "address", "value": source_account.public_key},
{"name": "project_key", "type": "bytes", "value": project_key},
{"name": "hash", "type": "bytes", "value": commit_hash},
{"name": "hash", "type": "string", "value": commit_hash},
]
args = soroban.Parameters(args=args)

Expand Down

0 comments on commit bed45ee

Please sign in to comment.