Skip to content

Commit

Permalink
Merge pull request #18 from Phala-Network/fix-run-through
Browse files Browse the repository at this point in the history
fix build failure & add CI
  • Loading branch information
HashWarlock committed Dec 16, 2023
2 parents 511d1be + 95d27fd commit b0418c8
Show file tree
Hide file tree
Showing 9 changed files with 10,521 additions and 8 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: CI

on:
push:
branches: [ main ]
pull_request:

jobs:
test-jssdk:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '18'
cache: npm
- run: npm install
- run: npm run compile
- run: npx @phala/fn build
- run: npx @phala/fn run dist/index.js -a 0x0000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000043078303100000000000000000000000000000000000000000000000000000000 https://api-v2-mumbai-live.lens.dev/
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,3 @@ artifacts
.phat
dist
polkadot-account.json
package-lock.json
3 changes: 1 addition & 2 deletions contracts/OracleConsumerContract.sol
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,9 @@ contract OracleConsumerContract is PhatRollupAnchor, Ownable {

// For test
function malformedRequest(bytes calldata malformedData) public {
uint id = nextRequest;
uint id = 0;
requests[id] = "malformed_req";
_pushMessage(malformedData);
nextRequest += 1;
}

function _onMessageReceived(bytes calldata action) internal override {
Expand Down
Loading

0 comments on commit b0418c8

Please sign in to comment.