Solidity 中 bytes 类型如何转换为整型 uint
function bytesToUint(bytes memory b) public view returns (uint256){ uint256 number; for(uint i= 0; i<b.length; i++){ number = number + uint8(b[i])*(2**(8*(b.length-(i+1)))); } return (ad, number); }