Skip to content

Commit f0b4f93

Browse files
thepiwokenodressel
authored andcommitted
fix: oracle urls out of gas
1 parent a8cfe23 commit f0b4f93

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ npm i
2828

2929
#### Start ipfs, database & redis
3030
```bash
31-
docker run --rm --name ipfs -p 5001:5001 -d ipfs/go-ipfs
31+
docker run --rm --name ipfs -p 5001:5001 -d ipfs/kubo
3232
docker run --name superhero-postgres -e POSTGRES_PASSWORD=postgres -e POSTGRES_USER=postgres -e POSTGRES_DB=superhero -p5432:5432 -d postgres
3333
docker run --name redis -p 6379:6379 -d redis
3434
```

docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
version: "3.6"
22
services:
33
superhero-backend:
4-
image: aeternity/superhero-backend
4+
build: .
55
container_name: superhero-backend
66
ports:
77
- "3000:3000"
@@ -54,7 +54,7 @@ services:
5454
- POSTGRES_DB=superhero
5555

5656
ipfs: # this instance will sync with other peers and act as a p2p node, check the ipfs config to avoid that
57-
image: ipfs/go-ipfs
57+
image: ipfs/kubo
5858
hostname: ipfs
5959
restart: unless-stopped
6060
container_name: superhero-ipfs

modules/aeternity/logic/aeternity.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,10 @@ const aeternity = {
390390
async getOracleAllClaimedUrls() {
391391
if (!client) throw new Error('Init sdk first');
392392
return oracleGetter
393-
.get_oracle_claimed_urls(process.env.ORACLE_CONTRACT_ADDRESS)
393+
.get_oracle_claimed_urls(process.env.ORACLE_CONTRACT_ADDRESS, {
394+
gasMax: 11e18,
395+
gasLimit: 10e18,
396+
})
394397
.then(res => res.decodedResult)
395398
.catch(e => {
396399
logger.error(e.message);

0 commit comments

Comments
 (0)