Verified contractPartial
ArrayLib
Address0xa864d682b24192ac8a1ee04bd323fbbb23e8ef07
- Balance
0 ETH
- Transactions
1
- Compiler
solc 0.4.8
- Same code
5 more contracts
Details
- Compiler
- solc 0.4.8+commit.60cc1668
- Language
- solidity
- Optimization
- Yes, 200 runs
- License
- Not stated
- Match
- Partialcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 3,603,879
- Creation transaction
- 0x4a9c3eece6…0265780458
ArrayLib.sol
// Recovered by EthereumHistory (ethereumhistory.com) -sw
pragma solidity ^0.4.8;
library ArrayLib {
// Inserts to keep array sorted (assumes input array is sorted)
function insertInPlace(uint8[] storage self, uint8 n) {
uint8 insertingIndex = 0;
while (self.length > 0 && insertingIndex < self.length && self[insertingIndex] < n) {
insertingIndex += 1;
}
self.length += 1;
for (uint8 i = uint8(self.length) - 1; i > insertingIndex; i--) {
self[i] = self[i - 1];
}
self[insertingIndex] = n;
}
}Compiler settingsShow
{
"optimizer": {
"runs": 200,
"enabled": true
}
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.