Comments (8)
The trigger is possibly:
curl 'https://latest.compiler.aepps.com/decode-call-result' \
-XPOST \
-H 'Accept: application/json, text/plain, */*' \
-v -H 'Content-Type: application/json' \
-H 'Origin: https://contracts.aepps.com' \
-H 'Referer: https://contracts.aepps.com/' \
--data-binary '{"function":"getMapNegative","source":"contract MapTest =\n record state = { tMap : map(int, int) }\n\n stateful entrypoint init() = { tMap = {} }\n\n entrypoint getMapPositive(index: int) =\n state.tMap[index = 5]\n\n entrypoint getMapNegative(index: int) =\n state.tMap[index = -5]","call-result":"ok","call-value":"cb_igCOSxs=","options":{"backend":"fate","clientTtl":1,"nameTtl":50000,"deposit":0,"gasPrice":1000000000,"amount":0,"gas":1000000,"options":"","dryRunAccount":{"pub":"ak_11111111111111111111111111111111273Yts","amount":"100000000000000000000000000000000000"},"queryFee":30000,"oracleTtl":{"type":"delta","value":500},"queryTtl":{"type":"delta","value":10},"responseTtl":{"type":"delta","value":10},"skipArgsConvert":false,"skipTransformDecoded":false,"callStatic":false,"top":null,"waitMined":true,"verify":false,"filesystem":{},"owner":"ak_2bKhoFWgQ9os4x8CaeDTHZRGzUcSwcXYUrM12gZHKTdyreGRgG","code":"contract MapTest =\n record state = { tMap : map(int, int) }\n\n stateful entrypoint init() = { tMap = {} }\n\n entrypoint getMapPositive(index: int) =\n state.tMap[index = 5]\n\n entrypoint getMapNegative(index: int) =\n state.tMap[index = -5]","fee":null,"callData":"","file_system":{}}}'
from aesophia_http.
The contract from the example above:
contract MapTest =
record state = { tMap : map(int, int) }
stateful entrypoint init() = { tMap = {} }
entrypoint getMapPositive(index: int) =
state.tMap[index = 5]
entrypoint getMapNegative(index: int) =
state.tMap[index = -5]
from aesophia_http.
Looks like the aci can't handle negative numbers. PR above
from aesophia_http.
Does it work now?
from aesophia_http.
Does it work now?
The upstream fix has to be integration in this repo and new release published
from aesophia_http.
Closing since the PR has been merged.
from aesophia_http.
@tolbrino what PR ? While the upstream fixed it, it's not fixed in this repo yet
from aesophia_http.
My fault.
from aesophia_http.
Related Issues (20)
- Remove trailing newline at the end of error messages HOT 2
- Validate bytecode against another bytecode HOT 18
- Use bytecode instead of byteCode in all cases
- Add support for compiler warnings
- "code" argument of /compile is confusing HOT 1
- Support of docker buildx and multi-plaforms HOT 1
- Duplicate keys in swagger.yaml
- Can't build a docker image HOT 1
- Inline options object in requests
- Missed definition of SophiaCallResult
- Crashing aesophia_http_api_validate:json_spec
- Out of file descriptors
- Deploy v7.0.1 to docker hub HOT 1
- Deploy v7.0.1 to latest.compiler.aepps.com HOT 8
- Endpoint to parse contract imports and pragmas HOT 1
- Integrate GH actions
- Missing CORS headers on HTTP error
- Remove timeout on compile endpoints
- Dependency on dead maven URL HOT 1
- Update URI parsing to work for OTP-25 and later HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aesophia_http.