Dapp-Development
松露測試失敗,多個合約
我有 3 次失敗的測試,總共 8 次,全部在第一份契約上工作,在第二份契約上沒有。任何見解為什麼我可以在契約上獲得混音“成功”,以及通過還原測試失敗?
$$ github link: $$( https://github.com/shaddow1201/CredentialVerify )
$$ error shown: $$( https://www.screencast.com/t/KOizhm55HX ) 2_deploy_contracts.js 詳細資訊:
var CredentialOrgFactory = artifacts.require(“CredentialOrgFactory”);
var CredentialFactory = artifacts.require(“CredentialFactory”);
//var ApplicationFactory = artifacts.require(“ApplicantFactory”);
//var ProcessCredentials = artifacts.require(“ProcessCredentials”);
module.exports = function(deployer) { deployer.deploy(CredentialOrgFactory); deployer.deploy(CredentialFactory); //deployer.deploy(ApplicantFactory); //deployer.deploy(ProcessCredentials); };
您擁有隻能由合約所有者呼叫的函式,該函式正在還原。另外,它對視圖功能沒有任何價值。