建议和反馈

请填写你的反馈内容

问答 > 分布式存储 > 问答详情

Solidity:Error在函数地址中查询依赖查找后,未找到或看不到成员“value”10LK

我试图在某个事件发生后自动从3个账户中提取资金。我无法从Remix IDE修复此错误。请有人让我知道我做错了什么......这个功能是应付的


在参数依赖查找函数地址后找不到或不可见成员“值”。你有没有忘记“应付”修改器


function SignTermsAndConditions() OnlySender_Receiver_Transporter{

    if(msg.sender == sender){

        require(state == contractState.waitingForVerificationbySender);

        SignedBy("Terms and Conditiond verified : ", msg.sender);

        state = contractState.waitingForVerificationbyTransporter;

    }else if(msg.sender == transporter)

    {

        require(state == contractState.waitingForVerificationbyTransporter);

        SignedBy("Terms and Conditiond verified : ", msg.sender);

        state = contractState.waitingForVerificationbyReceiver;

    }

    else if(msg.sender == receiver){

        require(state == contractState.waitingForVerificationbyReceiver);

        SignedBy("Terms and Conditiond verified : ", msg.sender);

        state = contractState.DoneVerificationofTerms;

        POD_PhysicalItems.withdrawAgreedUponCollateral.value(2*itemPrice)(sender);

        POD_PhysicalItems.withdrawAgreedUponCollateral.value(2*itemPrice)(transporter);

        POD_PhysicalItems.withdrawAgreedUponCollateral.value(2*itemPrice)(receiver);

    }

}


function withdrawAgreedUponCollateral(address entityAddress) payable internal  {

    require(state == contractState.DoneVerificationofTerms);

    collateralWithdrawnSuccessfully("Double deposit is withdrawn successfully from: ", entityAddress);


}


HBO
2019-09-11
0
请先登陆或注册

naruto2019-09-11

你无法调用契约类,你需要一个契约实例。


POD_PhysicalItems physicalItems = POD_PhysicalItems(physicalItemmsAddress);

physicalItems.withdrawAgreedUponCollateral.value(2*itemPrice)(sender);

physicalItemmsAddress已部署POD_PhysicalItems合同的地址在哪里。


投一票
评论(0)
赞赏(0)

求助中

解决了这个问题,预计可以帮助到

  • 0
  • 0
  • 9
  • 5
  • 0
邀请

感谢您的善举,每一次解答会成为新人的灯塔,回答被采纳后获得20算力和相应的LK币奖励