mirror of
https://github.com/status-im/eth2.0-specs.git
synced 2025-01-14 12:46:06 +00:00
b05444a92c
1. Add `install_deposit_contract_test` command 2. Add `test_deposit_contract` command
20 lines
538 B
Python
20 lines
538 B
Python
from vyper import (
|
|
compiler,
|
|
)
|
|
|
|
from .utils import (
|
|
get_deposit_contract_code,
|
|
get_deposit_contract_json,
|
|
)
|
|
|
|
|
|
def test_compile_deposit_contract():
|
|
compiled_deposit_contract_json = get_deposit_contract_json()
|
|
|
|
deposit_contract_code = get_deposit_contract_code()
|
|
abi = compiler.mk_full_signature(deposit_contract_code)
|
|
bytecode = compiler.compile_code(deposit_contract_code)['bytecode']
|
|
|
|
assert abi == compiled_deposit_contract_json["abi"]
|
|
assert bytecode == compiled_deposit_contract_json["bytecode"]
|