Skip to content

Commit

Permalink
Merge pull request #111 from art-by-city/109-uparweavenet
Browse files Browse the repository at this point in the history
use up.arweave.net for dispatch
  • Loading branch information
jim-toth authored Dec 21, 2023
2 parents 1152782 + 61c6a19 commit bbb4356
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 22 deletions.
30 changes: 14 additions & 16 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
"axios": "^1.6.0",
"buffer": "^6.0.3",
"uuid": "^9.0.1",
"warp-contracts": "1.4.25",
"warp-contracts": "1.4.30",
"warp-contracts-plugin-deploy": "1.0.12"
}
}
6 changes: 3 additions & 3 deletions src/common/transactions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { InjectedArweaveSigner } from 'warp-contracts-plugin-deploy'

import { MemoryCache } from '../cache'

const irysNode2 = `https://node2.irys.xyz`
const bundlerNode = `https://up.arweave.net`

export default class TransactionsModule {
protected readonly ardb!: ArDB
Expand Down Expand Up @@ -57,9 +57,9 @@ export default class TransactionsModule {

await this.arweave.transactions.post(tx)
} else {
// NB: Dispatch with irys when using mainnet
// NB: Dispatch with bundler node when using mainnet
const { status, statusText } = await axios.post(
`${irysNode2}/tx`,
`${bundlerNode}/tx`,
item.getRaw(),
{ headers: { 'Content-Type': 'application/octet-stream' }}
)
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/following.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ describe('Following Module', () => {
expect(followingId).to.be.a('string')
})

it.only('gets or creates following contract for signer', async function () {
it('gets or creates following contract for signer', async function () {
this.timeout(0)
const jwk = await Arweave.crypto.generateJWK()
const address = await getAddressFromSigner(jwk)
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/publications.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ describe('Publications Module', () => {
})

context('Authenticated', () => {
it.only('publishes images', async function () {
it('publishes images', async function () {
this.timeout(0)
const abc = new ArtByCity(arweave, config)
const opts: ImagePublicationOptions = {
Expand Down

0 comments on commit bbb4356

Please sign in to comment.