找到约 13 条结果

文章 SUI Move官方示例合约实践——FT类:监管币(regulated_coin)

...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) { ...

文章 如何在 BuildBear 沙盒中使用 Hardhat 和 Foundry 部署和 Sourcify 验证

...RL 将遵循以下格式:`https://rpc.buildbear/verify/sourcify/server/{sandboxId or customRPC}.` ``` forge create --rpc-url https://rpc.dev.buildbear.io/sanam --private-key 670e8f5f547a3bc4bd1869d473591ff10f6cf0d69a254257b61eca3f242ef188 script/DeployDevelopment.s.sol:DeployDevelopment --veri...

文章 引介: Alloy - 与以太坊智能合约交互 Rust 库

...=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 [...

文章 用 OpenZeppelin 和 Foundry 创建和部署可升级的 ERC20 代币

...learnblockchain.cn/article/15160-development/smart-contracts/how-to-create-and-deploy-an-upgradeable-erc20-token#create-the-erc-20-upgradeable-token-smart-contract) >- 译文出自:[登链翻译计划](https://github.com/lbc-team/Pioneer) >- 译者:[翻译小组](https://learnblockchain.cn/peo...

文章 Let's move - Sui Obejct相关学习实例

... 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 { ...

问题 通过Web3返回并读取一个结构体

...址](https://ethereum.stackexchange.com/questions/3609/returning-a-struct-and-reading-via-web3 "原文地址")

问题 智能合约 转USDT(ERC20)

...转走。报错: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.是为什么?请大神赐教 ![image.png](https://img.learnblockchain.cn/attachments/2021/05/RWx0kFxl60966c657ba...

问题 大佬,怎样在remix连接metamask的BSC测试网?

连接报错 **No injected Web3 provider found. Make sure your provider (e.g. MetaMask) 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.

问题 BSC验证带构造函数的合约源代码不通过

发布的合约源代码在REMIX上没有报错也发布成功了。 拿着源代码在BSC上提交验证源代码老是提示如下错误: Error! Unable to generate Contract ByteCode and ABI **(Expected library(ies) but one or more was not provided)** 有大神知道怎么解决吗?

问题 hyperledger fabric 链码背书

...rledger fabric,在CLI中,如果要调用一个链码背书策略为(`AND(‘Org1.member’, ‘Org2.member’, ‘Org3.member’)` 需要指定各个背书节点的peerAddress才能调用该链码,那么节点背书的过程在这里如何体现呢?(只是在控制台多输入了几条...

问题 普通函数内,无法为【storage 类型结构体】进行赋值。

...赋值了。 报错信息:**this variable is of storage pointer type and can be accessed without prior assignment, which would lead to undefined behaviour .** 直接翻译是:此变量是存储指针类型,可以在没有事先赋值的情况下访问,这将导致未定义的行为。 ...

问题 用truffle将项目部署到ropsten连接不上

...t match the one returned by the network (1). Ensure that both the network and the provider are properly configured. 这问题,请问该怎么解决