我试图在契约中声明bytes32数组,但没有成功。TypeError: Type string memory[5] memory is not implicitly convertible // bytes32[] public courseMap = ["Chinese", "English", "Math", "
我试图将一个bytes32推到一个数组中,但是它仍然是空的。这是我代码的一部分: bytes32[] public encryptedVotes; address public owner;
function Voting(bytes32[] _candidateListpollingStationList = _poll
是否有一种简单的方法可以将bytes32转换为bytes?bytes memory _tmpUsername = bytes(_username); // _username is of type bytes32 Explicit type conversion not allowed from "bytes32" to "b