Module gas_service::operator_cap
use std::ascii;
use std::bcs;
use std::option;
use std::string;
use std::vector;
use sui::address;
use sui::hex;
use sui::object;
use sui::tx_context;
Struct OperatorCap
public struct OperatorCap has key, store
Fields
-
id: sui::object::UID
-
Function create
public(package) fun create(ctx: &mut sui::tx_context::TxContext): gas_service::operator_cap::OperatorCap
Implementation
public(package) fun create(ctx: &mut TxContext): OperatorCap {
OperatorCap {
id: object::new(ctx),
}
}