...:transfer(AdminCap{id:object::new(ctx)},sender(ctx));
}
//get random number
// public entry fun get_random_number(_: &AdminCap, game: &mut Game, r: &Random, ctx: &mut TxContext) {
// let mut generator=random::new_generator(r,ctx);
// let random_value=random::genera...
...
```move
/// Removes the key-value pair in the table `table: &mut Table` and returns the value.
/// Aborts with `sui::dynamic_field::EFieldDoesNotExist` if the table does not have an entry with
/// that key `k: K`.
public fun remove(table: &mut Table, k: K): V {
let v = field::remove(&mut ...
...install
Then run the following applications to enroll the admin user, and register a new user
called user1 which will be used by the other applications to interact with the deployed
FabCar contract:
node enrollAdmin
node registerUser
You can run the invoke application as fo...