Skip to content
Merged
1 change: 0 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ name: CI
on:
push:
branches: [staging, mainnet]
pull_request:

jobs:
wiki_address_check:
Expand Down
33 changes: 33 additions & 0 deletions .github/workflows/simplex.yml
Original file line number Diff line number Diff line change
@@ -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
18 changes: 15 additions & 3 deletions test/ethregistrar/TestBaseRegistrar.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
)

Expand All @@ -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,
},
)
})
Expand Down
Loading