0 Members and 1 Guest are viewing this topic.
Quote from: arhag on February 13, 2015, 02:25:27 amWhy do escrows use account names and not conditions? Shouldn't each of the sender, receiver, and agent be a condition which can be a single address or a multisig condition?Anyone?
Why do escrows use account names and not conditions? Shouldn't each of the sender, receiver, and agent be a condition which can be a single address or a multisig condition?
Use the word "agent" instead of the agent name (delegate-clayop)
I don't see one. I think it would be here. https://github.com/BitShares/bitshares/tree/develop/docs
>> escrow clayop[{ "creating_transaction_id": "1b7e083af87d4a78eccb2e91fbacfa4eacb2159f", "balance_id": "BTSJ2KPSu7tFKW9NPXnWLs3tU6Vr6yPjz1XY", "balance": { "amount": 100, "asset_id": 316 }, "sender_account_name": "clayop", "receiver_account_name": "jaewoocho", "escrow_agent_account_name": "delegate-clayop", "agreement_digest": "0000000000000000000000000000000000000000000000000000000000000000" }]
>> wallet_release_escrow delegate-clayop BTSJ2KPSu7tFKW9NPXnWLs3tU6Vr6yPjz1XY delegate-clayop10 assert_exception: Assert Exceptionreleased_by == "sender" || released_by == "receiver" || released_by == "agent": {} bitshares wallet_api.cpp:744 bts::client::detail::client_impl::wallet_release_escrow {} bitshares common_api_client.cpp:4304 bts::rpc_stubs::common_api_client::wallet_release_escrow {"command":"wallet_release_escrow"} bitshares cli.cpp:626 bts::cli::detail::cli_impl::execute_command