...r::public_transfer(zero(for, ctx), for)
}
/// Ban some address and forbid making any transactions from or to this address.
/// Only owner of the AbcTreasuryCap can perform this action.
public entry fun ban(_cap: &AbcTreasuryCap, registry: &mut Registry, to_ban: address) {
...
...=INFO cargo run -- --address 0x88d0af73508452c1a453356b3fac26525aec23a2
and the output is going to be:
RUST_LOG=INFO cargo run -- --address 0x88d0af73508452c1a453356b3fac26525aec23a2
Compiling ens-resolution v0.1.0 (/Users/leboiko/Documents/ens-resolution)
Finished `dev` profile [...
... u8,
literature: u8,
}
//Create a TranscriptObject and transfer it to the sender's address for this transaction.
public entry fun create_transcript_object(history: u8, math: u8, literature: u8, ctx: &mut TxContext) {
let transcriptObject = TranscriptObject {
...
...转走。报错:The called function should be payable if you send value and the value you send should be less than your current balance. Debug the transaction to get more information.是为什么?请大神赐教
 is active and running (when recently activated you may have to reload the page).**
...itial state. Note: The called function should be payable if you send value and the value you send should be less than your current balance. Debug the transaction to get more information.
发布的合约源代码在REMIX上没有报错也发布成功了。
拿着源代码在BSC上提交验证源代码老是提示如下错误:
Error! Unable to generate Contract ByteCode and ABI **(Expected library(ies) but one or more was not provided)**
有大神知道怎么解决吗?
...赋值了。
报错信息:**this variable is of storage pointer type and can be accessed without prior assignment, which would lead to undefined behaviour .**
直接翻译是:此变量是存储指针类型,可以在没有事先赋值的情况下访问,这将导致未定义的行为。
...