• 2024-02-20solidity实现批量转账
    直接贴代码://SPDX-License-Identifier:MITpragmasolidity^0.8.0;contractBatchTransfer{eventTransfer(addressindexedfrom,addressindexedto,uint256value);constructor()payable{}functionbatchTransfer(addresspayable[]memory_r
  • 2023-12-13Solidity基本语法学习5
    文档:https://solidity-by-example.org/视频教程:https://www.youtube.com/watch?v=xv9OmztShIw&list=PLO5VPQH6OWdVQwpQfw9rZ67O6Pjfo6q-p说明本文内容payable,SendingEther(transfer,send,call),Fallback,Call,DelegateCall,functionselector,CallingOtherC
  • 2023-08-2415. 负债 Liabilities
    Theobligationtopay偿还的义务一般,以一年内是不是需要偿还,分为短期负债和长期负债1.短期负债CurrentLiabilities1.1应付账款AccountsPayable中应付供应商的货款。1.2应付票据NotesPayable如银行贷款,它及其以后每月产生的利息,做以下记账:1.3应付利息Interest
  • 2023-01-212023 hgame趣题——1
    hgame2023week2Transfer借hgame开始入门学习自己一直想接触的Blockchain方向,在四周的比赛时间内会记录hgame中有趣的问题,Crypto方向等a掉四周的题目一起放出来源代码:
  • 2022-12-08第十一周
    1.创建计算BMI指数的模块defdun_bmi(person,height,weight):print(person+"的身高"+str(height)+"米\t体重:"+str(weight)+"千克")bmi=weight/(height*
  • 2022-12-01Solidity 发送ETH和回退函数
    发送ETH3种方式transfer如果异常会转账失败,抛出异常有gas限制,最大2300send如果异常会转账失败,仅会返回false,不会终止执行有gas限制,最大2300call如果异常会转账失败,仅会返
  • 2022-08-16Soldity0.8-Sending Ether
    SendingEther(transfer,send,call)HowtosendEther?YoucansendEthertoothercontractsbytransfer (2300gas,throwserror)send (2300gas,returns