ICode9

精准搜索请尝试: 精确搜索
  • Halcon的提取中心线算法2022-09-12 11:33:11

    Halcon提取中心线的一般流程: read_image (Image, 'C:/Users/Administrator/Desktop/china.png') *计算提线参数 MaxLineWidth := 5 Contrast := 10 calculate_lines_gauss_parameters (MaxLineWidth, [Contrast,0], Sigma, Low, High) *提取中心线 lines_gauss (Image, Lines, Si

  • 低代码平台amis学习 三:发送网络请求并回显响应内容2022-08-29 13:30:57

    在amis表单中发送网络请求需要配置api参数,具体详见:amis-API 配置api请求参数 首先配置一下test.json中api属性 "api": { "method": "get", "url": "http://localhost:8000/data_factory/create_contract_data", "data&qu

  • consider2022-08-17 09:04:59

    consider [from Latin considerare 'to look at the stars, look at closely, examine', from com- + sidus 'star'] sidereal: of the stars or measured by them ponder [Origin: ponderer 'to weigh', from Latin ponderare, from pondus &#

  • Soldity0.8-Delegatecall2022-08-02 12:33:45

    delegatecall is a low level function similar to call. When contract A executes delegatecall to contract B, B's code is executed with contract A's storage, msg.sender and msg.value.   // SPDX-License-Identifier: MIT pragma solidity ^0.8.13; // N

  • Solidty0.8-Calling Other Contract2022-08-02 12:33:28

    ontract can call other contracts in 2 ways. The easiest way to is to just call it, like A.foo(x, y, z). Another way to call other contracts is to use the low-level call. This method is not recommended.   // SPDX-License-Identifier: MIT pragma solidity ^0.

  • Soldity0.8-Inheritance2022-07-31 23:00:45

    Solidity supports multiple inheritance. Contracts can inherit other contract by using the is keyword. Function that is going to be overridden by a child contract must be declared as virtual. Function that is going to override a parent function must use th

  • Solidity0.8-Shadowing Inherited State Variables2022-07-31 22:35:26

    Unlike functions, state variables cannot be overridden by re-declaring it in the child contract. Let's learn how to correctly override inherited state variables.   // SPDX-License-Identifier: MIT pragma solidity ^0.8.13; contract A { string publ

  • Solidity0.8.0-Calling Other Contract2022-07-31 22:01:26

    Contract can call other contracts in 2 ways. The easiest way to is to just call it, like A.foo(x, y, z). Another way to call other contracts is to use the low-level call. This method is not recommended.   // SPDX-License-Identifier: MIT pragma solidity ^0

  • Collections.sort()报Comparison method violates its general contract异常解决方法2022-07-28 18:00:17

    在重写Comparator类的compare的方法时,报如下的错误,还没有查到具体原因,因为相同的程序数据量不同,所以不知道是不是数据量太大导致报这个错??? public class ComparatorFloor implements Comparator<DormFloor> { public int compare(DormFloor o1, DormFloor o2) { if

  • solidity开发 - CALL 和 DELEGATECALL 的详解2022-07-06 13:46:53

    本文会从solidity,EVM 和 Geth 三个层面解读这两个opcode,让你对它们有一个全面的认识。然而在深入理解他们之前,我们先确认一下合约执行上下文的概念: 执行上下文 当EVM运行合约时,会创造一个上下文,它包含以下几个部分: Code 存储在链上的合约的不可变代码。 Call Stack 前文讲过

  • Comparison method violates its general contract 排序报错2022-06-27 12:04:06

    报错代码 list=list.sort{a,b->if(a.last_update<b.last_update) return -1 else return 1} 报错内容 java.lang.IllegalArgumentException: Comparison method violates its general contract! at java.util.TimSort.mergeLo(TimSort.java:777) at java.util.TimSort.mergeAt(

  • Ethernaut的writeup2022-06-17 13:06:15

    Ethernaut记录 Hello Ethernaut 出题目的 初级题目,用于测试通过控制台与合约交互 合约代码 pragma solidity ^0.4.18; contract Instance { string public password; uint8 public infoNum = 42; string public theMethodName = 'The method name is method7123949.'; b

  • Hyperledger Fabric chaincode GetState返回空值2022-04-27 23:35:48

    可能原因: 1. struct的字段首字母没有大写。用json转换的话首字母都要大写。 2. 不同smart contract function分布在了不同文件夹。一个smart contract对应一个database,不同function要都写在同一个go文件里。 https://stackoverflow.com/questions/53437717/chaincode-getstate-ret

  • 需求改进&系统设计2022-04-25 09:02:04

    作业四、需求改进&系统设计 这个作业属于哪个课程班级的链接 这个作业要求在哪里 作业要求的链接 这个作业的目标 1. 需求改进&系统设计      项目背景:  一家公司提供服务出租,自身有一些员工,另外还有很多自由职业者作为服务商存在。公司目前使用Excel工作表来管

  • solidity基础-常量、变量和函数2022-04-13 13:34:10

    一、变量   solidity 的变量和 其他语言一样,分为局部变量,全局变量,状态变量; 1.1、局部变量   变量仅在函数中有效; contract VariableTest{ function getResult() public view returns(uint){ uint a = 1; return a; } } 1.2、全局变量 ( Global Variab

  • 以太坊 Solidity block对象2022-02-04 20:01:47

    block对象结构: block.coinbase (address): 当前块的矿工的地址block.difficulty (uint):当前块的难度系数block.gaslimit (uint):当前块gas的上限block.number (uint):当前块编号block.blockhash (function(uint) returns (bytes32)):函数,返回指定块的哈希值,已经被内建函数block

  • 以太坊 solidity msg对象2022-02-04 20:00:12

    msg对象代表调用合约时传递的消息内容。 msg.data (bytes):完整的calldatamsg.gas (uint):剩余的gas量msg.sender (address):消息的发送方(调用者)msg.sig (bytes4):calldata的前四个字节(即函数标识符)msg.value (uint):联盟链中无需使用此数据 SmartDev-Contract/Solidity-bas

  • Activity Result API 使用与源码分析,面试阿里P7岗2022-01-17 11:31:50

    public final <I, O> ActivityResultLauncher register( @NonNull final String key, @NonNull final LifecycleOwner lifecycleOwner, @NonNull final ActivityResultContract<I, O> con tract, @NonNull final ActivityResultCallback callback) { Lifecycle li

  • 【TWS API 使用教程7】如何使用TWS API 从盈透证券中筛选满足一定条件的contract?2022-01-02 19:32:06

    在 TWS API的官方代码文档中,有一篇介绍如何使用市场扫描仪的文章,在前面的文章中,进行了粗略的翻译: 19、TWS API和IB中的市场扫描仪 在后续的文章中,有一篇讲解了如何直接在TWS中使用扫描仪获取相应的筛选后的contract 【TWS使用系列3】如何使用市场扫描仪找到美国的小市值股票?

  • 【电子商务法】北邮国际学院大三上期末复习2021-12-15 13:02:23

    法条明细 PRC Contract law(中华人民共和国合同法) 合同形式:A10、A11 要约定义和生效:A14、A16 承诺定义和生效:A21、A25、A26 失效:要约A20格式条款A40合同A52合同免责条款A53 PRC Civil procedure law(中华人民共和国民事诉讼法) 被告被管辖的地点:A22、A29 合同选择被管辖的地点:A24、

  • Kotlin Contract(契约)2021-12-13 20:34:13

    虽然kotlin有智能推断功能,但是有时候还是有些代码没有办法进行推断,因此,诞生了Contract(契约)功能,不过目前该功能还是实验功能(ExperimentalContracts),其使用可以参考 apply、let等功能,kotlin源码中有大量的Contract(契约),示例如下: 另外经过尝试,该函数可以写成顶层函数或者类

  • The requested contract was not found2021-11-23 18:01:42

    使用openzeppelin 部署可以升级的合约时,遇到了 The requested contract was not found. Make sure the source code is available for compilation 官网的常见问题给给出了答案 Frequently Asked Questions - OpenZeppelin Docshttps://docs.openzeppelin.com/upgrades-plugins/

  • Java调用智能合约2021-11-19 19:04:28

    Web3j让Java开发者可以轻松地访问以太坊区块链并调用区块链上的智能合约的方法,本教程中,将介绍如何创建一个简单的命令行应用来访问区块链上的合约。 1、什么是web3j 现在的Web3j是一个开发包,你可以利用这个开发包快速实现对以太坊/Quorum节点的访问,同时也可以用它为某个智能合约文

  • NFT环境部署-vnt.js进行部署2021-11-18 21:30:50

    这只是一个使用vnt.js进行合约部署与调用的示例,更多的vnt.js接口请参考: VNT Javascript API 前提 1. 运行环境 需要安装 node: v8.11.2 2. 初始化部署目录 mkdir deploy cd deploy npm init # 该步会生成package.json 3. 安装依赖 安装vnt.js: 0.20.7和vnt-kit.js 1.0.0 n

  • 智能合约安全相关论文2021-11-01 10:00:57

    - Maintenance-Related Concerns for Post-deployed Ethereum Smar Contract Development: Issues, Techniques, and Future Challenges (EMSE 21). - Automating User Notice Generation for Smart Contract Functions (ASE 21) - Empirical Evaluation of Smart Contract Te

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有