Reputation: 1
pragma solidity >=0.4.24;
contract Registration {
struct MultiSig
{
address institute;
address student;
Documents documents;
}
mapping(address=>MultiSig) public wallets ;
function createNewMultiSigbyUser(address instituteaddress) public {
var wa = wallets[msg.sender];
wa.institute = instituteaddress;
wa.studend = msg.sender;
}
}
on the var datatype, it says Expected Primary Expression Please help in correcting this code.
Upvotes: 0
Views: 112
Reputation: 601
the var
keyboard is being deprecated in 0.4.20 (see).
You must specify a type, in that case MultiSig
.
Upvotes: 1