Skip to content

Commit

Permalink
fix: oracle urls out of gas
Browse files Browse the repository at this point in the history
  • Loading branch information
thepiwo authored and kenodressel committed Aug 20, 2024
1 parent a8cfe23 commit f0b4f93
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ npm i

#### Start ipfs, database & redis
```bash
docker run --rm --name ipfs -p 5001:5001 -d ipfs/go-ipfs
docker run --rm --name ipfs -p 5001:5001 -d ipfs/kubo
docker run --name superhero-postgres -e POSTGRES_PASSWORD=postgres -e POSTGRES_USER=postgres -e POSTGRES_DB=superhero -p5432:5432 -d postgres
docker run --name redis -p 6379:6379 -d redis
```
Expand Down
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: "3.6"
services:
superhero-backend:
image: aeternity/superhero-backend
build: .
container_name: superhero-backend
ports:
- "3000:3000"
Expand Down Expand Up @@ -54,7 +54,7 @@ services:
- POSTGRES_DB=superhero

ipfs: # this instance will sync with other peers and act as a p2p node, check the ipfs config to avoid that
image: ipfs/go-ipfs
image: ipfs/kubo
hostname: ipfs
restart: unless-stopped
container_name: superhero-ipfs
5 changes: 4 additions & 1 deletion modules/aeternity/logic/aeternity.js
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,10 @@ const aeternity = {
async getOracleAllClaimedUrls() {
if (!client) throw new Error('Init sdk first');
return oracleGetter
.get_oracle_claimed_urls(process.env.ORACLE_CONTRACT_ADDRESS)
.get_oracle_claimed_urls(process.env.ORACLE_CONTRACT_ADDRESS, {
gasMax: 11e18,
gasLimit: 10e18,
})
.then(res => res.decodedResult)
.catch(e => {
logger.error(e.message);
Expand Down

0 comments on commit f0b4f93

Please sign in to comment.