Abstract Testnet

Contract Diff Checker

Contract Name:
HelloAbstract

Contract Source Code:

File 1 of 1 : HelloAbstract

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.24;



contract HelloAbstract {
  

    int16[] public tesL;
    int16[] public tesLo;

    function setLatLong(int16 l, int16 lo, int16 count) external  {
        for (int16 i = 0; i < count; i++) {
            if (i < 100) {
                tesL.push(l + i);
                tesLo.push(lo + (2*i));
            } else {
                tesL.push(l);
                tesLo.push(lo);
            }
        }
    }

    function getAllCoordinates()
        external
        view
        returns (int16[] memory, int16[] memory)
    {
        return (tesL, tesLo);
    }

}

Please enter a contract address above to load the contract details and source code.

Context size (optional):