diff --git a/v6_x/v6.1.0/contracts/gosh/versioncontroller.abi.json b/v6_x/v6.1.0/contracts/gosh/versioncontroller.abi.json index 82e758ce1..6d3dfeb1b 100644 --- a/v6_x/v6.1.0/contracts/gosh/versioncontroller.abi.json +++ b/v6_x/v6.1.0/contracts/gosh/versioncontroller.abi.json @@ -393,6 +393,15 @@ "outputs": [ {"name":"value0","type":"uint256"} ] + }, + { + "name": "getPropIdFromCell", + "inputs": [ + {"name":"propData","type":"cell"} + ], + "outputs": [ + {"name":"value0","type":"uint256"} + ] } ], "data": [ diff --git a/v6_x/v6.1.0/contracts/gosh/versioncontroller.sol b/v6_x/v6.1.0/contracts/gosh/versioncontroller.sol index 9d915c7eb..5cf4923fd 100644 --- a/v6_x/v6.1.0/contracts/gosh/versioncontroller.sol +++ b/v6_x/v6.1.0/contracts/gosh/versioncontroller.sol @@ -280,5 +280,11 @@ contract VersionController is Modifiers { function getHashCell(TvmCell state) external pure returns(uint256) { return tvm.hash(state); } + + function getPropIdFromCell(TvmCell propData) external pure returns(uint256) { + TvmSlice s = propData.toSlice(); + (,, uint256 propid) = s.decode(uint8, address, uint256); + return propid; + } } diff --git a/v6_x/v6.1.0/contracts/gosh/versioncontroller.tvc b/v6_x/v6.1.0/contracts/gosh/versioncontroller.tvc index 754b7744e..efd440f54 100644 Binary files a/v6_x/v6.1.0/contracts/gosh/versioncontroller.tvc and b/v6_x/v6.1.0/contracts/gosh/versioncontroller.tvc differ