我正在尝试将使用视觉工作室的可靠性扩展构建的智能合约部署到天蓝色的以太坊区块链中。
关注启动Visual Studio代码的博客
https://blogs.msdn.microsoft.com/caleteet/2016/04/01/solidity-integration-with-visual-studio/
我在azure中添加了“以太坊区块链领导者”并且它正在运作
目前样本合同看起来像..
contract Payout {
address Victor;
address Jim;
address Kieren;
mapping (address => uint) ownershipDistribution;
function Setup() {
Victor = 0xaabb;
Jim = 0xccdd;
Kieren = 0xeeff;
ownershipDistribution[Victor] = 35;
ownershipDistribution[Jim] = 35;
ownershipDistribution[Kieren] = 30;
}
function Dividend() {
uint bal= this.balance;
Victor.send(bal * ownershipDistribution[Victor] / 100);
Jim.send(bal * ownershipDistribution[Jim] / 100);
Kieren.send(bal * ownershipDistribution[Kieren] / 100);
}
}
当我编译smartcontract时,编译好了。但是当我部署到天蓝色的以太坊时
合同已部署,但我收到了错误 { “jsonrpc”: “2.0”, “错误”:{ “代码”: - 32600, “消息”: “EOF”}}