Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/walterproof/exp-collision
repo to reproduce View name collision with pytezos
https://github.com/walterproof/exp-collision
Last synced: 7 days ago
JSON representation
repo to reproduce View name collision with pytezos
- Host: GitHub
- URL: https://github.com/walterproof/exp-collision
- Owner: WalterProof
- Created: 2022-07-24T09:00:55.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-07-24T10:10:51.000Z (over 2 years ago)
- Last Synced: 2024-07-06T13:56:20.714Z (4 months ago)
- Language: Makefile
- Size: 40 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# exp-collision
Run `python3 collision.py` to see the error.
You should get this trace:
```sh
Traceback (most recent call last):
File "/home/steven/code/exp-collision/collision.py", line 9, in
contract = ContractInterface.from_michelson(contract_michelson)
File "/home/steven/.local/lib/python3.10/site-packages/pytezos/contract/interface.py", line 126, in from_michelson
return ContractInterface.from_micheline(michelson_to_micheline(source), context)
File "/home/steven/.local/lib/python3.10/site-packages/pytezos/contract/interface.py", line 148, in from_micheline
return cls(context)
File "/home/steven/.local/lib/python3.10/site-packages/pytezos/contract/interface.py", line 74, in __init__
assert not hasattr(self, view_name), f'View name collision {view_name}'
AssertionError: View name collision token_metadata
```It happens because the contract has a view named `token_metadata`.