diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e2f4376ff..c684c11b9 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -3,7 +3,6 @@ name: CI on: push: branches: [staging, mainnet] - pull_request: jobs: wiki_address_check: diff --git a/.github/workflows/simplex.yml b/.github/workflows/simplex.yml new file mode 100644 index 000000000..2c881f096 --- /dev/null +++ b/.github/workflows/simplex.yml @@ -0,0 +1,33 @@ +name: SimpleX tests + +on: + push: + branches: [simplex] + pull_request: + branches: [simplex] + +permissions: + contents: read + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: pnpm/action-setup@v4 + with: + version: 9 + + - uses: actions/setup-node@v4 + with: + node-version-file: .nvmrc + cache: pnpm + + - run: pnpm install --frozen-lockfile + + - run: pnpm exec hardhat compile + + - run: pnpm exec vitest run + env: + NODE_OPTIONS: --disable-warning=ExperimentalWarning diff --git a/test/ethregistrar/TestBaseRegistrar.test.ts b/test/ethregistrar/TestBaseRegistrar.test.ts index 7ea2fdc18..cc4d0f388 100644 --- a/test/ethregistrar/TestBaseRegistrar.test.ts +++ b/test/ethregistrar/TestBaseRegistrar.test.ts @@ -166,10 +166,16 @@ describe('BaseRegistrar', () => { it('should permit the owner to transfer a registration', async () => { const { ensRegistry, baseRegistrar } = await loadFixtureWithRegistration() + await baseRegistrar.write.approve( + [otherAccount.address, toLabelId('newname')], + { + account: registrantAccount, + }, + ) await baseRegistrar.write.transferFrom( [registrantAccount.address, otherAccount.address, toLabelId('newname')], { - account: registrantAccount, + account: otherAccount, }, ) @@ -178,12 +184,18 @@ describe('BaseRegistrar', () => { ).resolves.toEqualAddress(otherAccount.address) await expect( ensRegistry.read.owner([namehash('newname.eth')]), - ).resolves.toEqualAddress(registrantAccount.address) + ).resolves.toEqualAddress(otherAccount.address) + await baseRegistrar.write.approve( + [registrantAccount.address, toLabelId('newname')], + { + account: otherAccount, + }, + ) await baseRegistrar.write.transferFrom( [otherAccount.address, registrantAccount.address, toLabelId('newname')], { - account: otherAccount, + account: registrantAccount, }, ) })