create_new_process can't proceed if not roles provided
This commit is contained in:
parent
0a1b6c9552
commit
a3f1460fa5
@ -1146,6 +1146,10 @@ pub fn create_new_process(
|
|||||||
fee_rate: u32,
|
fee_rate: u32,
|
||||||
members_list: OutPointMemberMap,
|
members_list: OutPointMemberMap,
|
||||||
) -> ApiResult<ApiReturn> {
|
) -> ApiResult<ApiReturn> {
|
||||||
|
// At the very least we should have something in role
|
||||||
|
if roles.is_empty() {
|
||||||
|
return Err(ApiError { message: "Roles can't be empty".to_owned() });
|
||||||
|
}
|
||||||
// We create a transaction that spends to the relay address
|
// We create a transaction that spends to the relay address
|
||||||
let local_device = lock_local_device()?;
|
let local_device = lock_local_device()?;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user