2019-05-27 05:15:10 +00:00
|
|
|
from vyper import (
|
|
|
|
compiler,
|
|
|
|
)
|
|
|
|
|
2019-05-27 07:57:55 +00:00
|
|
|
from .utils import (
|
|
|
|
get_deposit_contract_code,
|
|
|
|
get_deposit_contract_json,
|
|
|
|
)
|
|
|
|
|
2019-05-27 05:15:10 +00:00
|
|
|
|
|
|
|
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"]
|