Skip to content

Commit

Permalink
MORE
Browse files Browse the repository at this point in the history
  • Loading branch information
rohan-agarwal-coinbase committed Oct 1, 2024
1 parent bbb7407 commit 2ce20b1
Showing 1 changed file with 24 additions and 3 deletions.
27 changes: 24 additions & 3 deletions tests/test_wallet_address.py
Original file line number Diff line number Diff line change
Expand Up @@ -649,7 +649,14 @@ def test_wallet_address_deploy_token(mock_api_clients, wallet_address):
mock_api_clients.smart_contracts.create_smart_contract.assert_called_once_with(
wallet_id=wallet_address.wallet_id,
address_id=wallet_address.address_id,
create_smart_contract_request=ANY,
create_smart_contract_request=CreateSmartContractRequest(
type="erc20",
options=SmartContractOptions(
actual_instance=TokenContractOptions(
name="TestToken", symbol="TT", total_supply="1000000"
)
),
),
)


Expand All @@ -668,7 +675,14 @@ def test_wallet_address_deploy_nft(mock_api_clients, wallet_address):
mock_api_clients.smart_contracts.create_smart_contract.assert_called_once_with(
wallet_id=wallet_address.wallet_id,
address_id=wallet_address.address_id,
create_smart_contract_request=ANY,
create_smart_contract_request=CreateSmartContractRequest(
type="erc721",
options=SmartContractOptions(
actual_instance=NFTContractOptions(
name="TestNFT", symbol="TNFT", base_uri="https://example.com/nft/"
)
),
),
)


Expand All @@ -687,7 +701,14 @@ def test_wallet_address_deploy_multi_token(mock_api_clients, wallet_address):
mock_api_clients.smart_contracts.create_smart_contract.assert_called_once_with(
wallet_id=wallet_address.wallet_id,
address_id=wallet_address.address_id,
create_smart_contract_request=ANY,
create_smart_contract_request=CreateSmartContractRequest(
type="erc1155",
options=SmartContractOptions(
actual_instance=MultiTokenContractOptions(
uri="https://example.com/multi-token/{id}.json"
)
),
),
)


Expand Down

0 comments on commit 2ce20b1

Please sign in to comment.