ubuntu@ubuntu-VirtualBox:~/Desktop/Blockchain-CapBAC/capability$ node src/js/watchRequest.js /home/ubuntu/Desktop/Blockchain-CapBAC/capability/src/js/watchRequest.js:205 var event = capability.AccessRequest(); ^ TypeError: capability.AccessRequest is not a function at Object.<anonymous> (/home/ubuntu/Desktop/Blockchain-CapBAC/capability/src/js/watchRequest.js:205:24) at Module._compile (internal/modules/cjs/loader.js:778:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10) at Module.load (internal/modules/cjs/loader.js:653:32) at tryModuleLoad (internal/modules/cjs/loader.js:593:12) at Function.Module._load (internal/modules/cjs/loader.js:585:3) at Function.Module.runMain (internal/modules/cjs/loader.js:831:12) at startup (internal/bootstrap/node.js:283:19) at bootstrapNodeJSCore (internal/bootstrap/node.js:623:3)
// addressの読み込み var networks = builded.networks; var contractAddress = networks[13].address; // var address = 0xF2Cf314DB895fA6f6E41cF03b4BDf981e68fc6C3; var capability = new web3.eth.Contract(abi, contractAddress); // console.log(smartKey); var event = capability.AccessRequest(); });
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)