...le publish.
/// Here we create only one instance of `OwnerCapability` and send it to the publisher.
fun init(ctx: &mut TxContext) {
transfer::transfer(OwnerCapability {
id: object::new(ctx)
}, tx_context::sender(ctx))
}
/// The entry function can ...
...Limit: 200_000, strict: false}) // Additional arguments, setting gas limit and non-strict sequency mode
),
feeToken: address(linkToken) // Setting feeToken to LinkToken address, indicating LINK will be used for fees
});
// Initialize a router client instance to interact with cross-chain router
...
...sn't use only types from inside the current crate
|
= note: define and implement a trait or new type instead
```
[类型别名]也无济于事,因为它并没有创建一个新的类型,所以也不会改变错误信息:
```rust
pub type MyError = String;
impl std::error::Er...