Skip to content

Commit

Permalink
test_transfer_agents: Modified tests to support the new BasicKYC
Browse files Browse the repository at this point in the history
Now the tests work with the new flag based KYC registry contract.
  • Loading branch information
villesundell committed Aug 9, 2019
1 parent f26e0c4 commit bcb10a4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ico/tests/contracts/test_transfer_agents.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ def restricted_transfer_agent(chain, team_multisig, basic_kyc) -> Contract:
}

contract, hash_ = chain.provider.deploy_contract('RestrictedTransferAgent', deploy_args=args, deploy_transaction=tx)
check_gas(chain, basic_kyc.transact(tx).adminAddRole(team_multisig, "setter"))

check_gas(chain, hash_)

Expand Down Expand Up @@ -173,7 +174,8 @@ def test_restricted_transfer_agent_whitelisted(chain, security_token, restricted
assert security_token.call().balanceOf(customer) == 10

check_gas(chain, security_token.transact({"from": team_multisig}).setTransactionVerifier(restricted_transfer_agent.address))
check_gas(chain, basic_kyc.transact({"from": team_multisig}).whitelistUser(team_multisig, True))
check_gas(chain, basic_kyc.transact({"from": team_multisig}).setFlags(team_multisig, 1))
check_gas(chain, basic_kyc.transact({"from": team_multisig}).setFlags(customer, 1))

check_gas(chain, security_token.transact({"from": customer}).transfer(team_multisig, 10))

Expand Down

0 comments on commit bcb10a4

Please sign in to comment.