def get_test_contract(name):
    contract_path = os.path.abspath(
        os.path.join(os.path.dirname(__file__), "..", "smart_contracts", name)
    )
    contracts = compile_files_cwd([contract_path])

    return contract_path, contracts
def inc_r(self, ind):
        r, c = self.row_col(ind)
        r += 1
        if r == self.nr:
            r = 0
        if r == (self.nr - 1) and c == (self.nc - 1):
            r = 0
        return self.indx(r, c)