File tree 1 file changed +1
-25
lines changed
1 file changed +1
-25
lines changed Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ library DevOpsTools {
85
85
relativeScriptPath
86
86
);
87
87
getRecentDeployment[2 ] = contractName;
88
- getRecentDeployment[3 ] = uint2str (chainId);
88
+ getRecentDeployment[3 ] = vm. toString (chainId);
89
89
getRecentDeployment[4 ] = string .concat (
90
90
absolutePath,
91
91
"/ " ,
@@ -102,28 +102,4 @@ library DevOpsTools {
102
102
revert ("No contract deployed " );
103
103
}
104
104
}
105
-
106
- function uint2str (
107
- uint _i
108
- ) internal pure returns (string memory _uintAsString ) {
109
- if (_i == 0 ) {
110
- return "0 " ;
111
- }
112
- uint j = _i;
113
- uint len;
114
- while (j != 0 ) {
115
- len++ ;
116
- j /= 10 ;
117
- }
118
- bytes memory bstr = new bytes (len);
119
- uint k = len;
120
- while (_i != 0 ) {
121
- k = k - 1 ;
122
- uint8 temp = (48 + uint8 (_i - (_i / 10 ) * 10 ));
123
- bytes1 b1 = bytes1 (temp);
124
- bstr[k] = b1;
125
- _i /= 10 ;
126
- }
127
- return string (bstr);
128
- }
129
105
}
You can’t perform that action at this time.
0 commit comments