Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: oracle urls out of gas #452

Merged
merged 1 commit into from
Aug 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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