当前位置:网站首页>Msg.value of solidity
Msg.value of solidity
2022-07-28 18:23:00 【L Qi Tian】
It will change when sending money to the contract msg.value Value .msg.value The value of wei In units of , The value is for the contract wei The number of .
The following contract can be used for testing
pragma solidity ^0.4.23;
contract tx{
uint256 value;
constructor()public payable{
value = msg.value;
}
function number()public view returns(uint256){
return value;
}
function n()public payable returns(uint256){
return msg.value;
}
}
边栏推荐
- 苹果供应商JDI拟以6.75亿美元出售白山LCD工厂和设备
- 如何简简单单地自己动手磨刀
- [reading notes] - 2 learn machine learning classification through naive Bayesian model
- ADS仿真 之 交流仿真和S参数仿真示例
- Digital filter (IV) -- converting analog filter into digital filter
- DC-DC开关电源
- solidity的require报错
- Changjiang storage launched its own storage brand "Zhiti", and the first SSD product was exposed
- Iptables firewall port rule configuration
- Characteristics required for making a good video Number
猜你喜欢
随机推荐
Summary of core knowledge points of Computer Composition Principles & key points of written interview [easy to understand]
Delete the last page of word document
2023年网络安全预算规划的五个关键考虑因素
Musk uses live pigs to show a new brain computer interface technology: it can read pig brain information in real time
Food safety | will the salt content of bread exceed the standard? A few tips to teach you to eat bread correctly!
频谱仪原理简介一
Compilation principle learning notes 3 (top-down syntax analysis)
频谱仪原理简介二
示波器探头详解
iptables 配置
Yu Chengdong: Huawei is trying to cope with the US chip ban
云容器与云原生
Categories with good sales volume on the video Number
DC-DC开关电源
[reading notes] for paper: summary of three papers in r-cnn series
Five key considerations for network security budget planning in 2023
Some methods of realizing video account
Openmv (VI) -- STM32 realizes object recognition and handwritten digit recognition
有一种密码学专用语言叫做ASN.1
Import the database backup of MySQL 8 into MySQL 5




![[reading notes] for paper: summary of three papers in r-cnn series](/img/1d/8b862ac66ea04d9371f64e35fc4396.png)




