开发者社区 问答 正文

使用send进行转账,返回转账结果,合约地址和合约账户余额

使用send进行转账,返回转账结果,合约地址和合约账户余额

展开
收起
北藏有名 2020-02-06 16:39:39 1091 分享 版权
1 条回答
写回答
取消 提交回答
  • 有点尴尬唉 你要寻找的东西已经被吃掉啦!

    pragma solidity >=0.4.23; contract SendContract{ function sendTest(address target) payable returns(bool,addres,int){

        address thisAddress=this;
        bool stauts=false
        if(thisAddress.banlance>=100000){
            stauts=target.send(100000)
        }
        return (stauts,thisAddress,thisAddress.banlance)
    }
    

    }

    2020-02-06 16:40:11
    赞同 展开评论
问答地址: