Alpha/Test/helpers: add call to delegate RPC
This commit is contained in:
parent
9f30b220e4
commit
42c7b004ec
@ -139,6 +139,9 @@ module Contract = struct
|
||||
Alpha_services.Contract.manager_key rpc_ctxt ctxt contract >>=? fun (_, res) ->
|
||||
return (res <> None)
|
||||
|
||||
let delegate ctxt contract =
|
||||
Alpha_services.Contract.delegate rpc_ctxt ctxt contract
|
||||
|
||||
let delegate_opt ctxt contract =
|
||||
Alpha_services.Contract.delegate_opt rpc_ctxt ctxt contract
|
||||
|
||||
|
@ -48,6 +48,7 @@ module Contract : sig
|
||||
val manager: t -> Contract.t -> Account.t tzresult Lwt.t
|
||||
val is_manager_key_revealed: t -> Contract.t -> bool tzresult Lwt.t
|
||||
|
||||
val delegate: t -> Contract.t -> public_key_hash tzresult Lwt.t
|
||||
val delegate_opt: t -> Contract.t -> public_key_hash option tzresult Lwt.t
|
||||
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user