Skip to content

Commit

Permalink
Merge pull request #46 from Quantum3-Labs/challenge-cero
Browse files Browse the repository at this point in the history
Improve Challenge cero
  • Loading branch information
0xquantum3labs authored Apr 13, 2024
2 parents fbcef8f + 314dac4 commit 4046b77
Show file tree
Hide file tree
Showing 10 changed files with 117 additions and 1,101 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ name: Next.js CI
on:
push:
paths:
- 'packages/nextjs/**'
- "packages/nextjs/**"
pull_request:
branches:
- main
paths:
- 'packages/nextjs/**'
- "packages/nextjs/**"

jobs:
ci:
Expand All @@ -27,7 +27,7 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: 'yarn'
cache: "yarn"
#cache-dependency-path: packages/nextjs/yarn.lock

- name: Install dependencies (Next.js)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { AbiFunction, AbiParameter } from "~~/utils/scaffold-stark/contract";
import { uint256 } from "starknet";
import { byteArray } from "starknet-dev";
/**
* Generates a key based on function metadata
*/
Expand Down Expand Up @@ -37,6 +38,9 @@ const deepParseValues = (value: any, keyAndType?: any): any => {
if (keyAndType.includes("core::integer::u256")) {
return uint256.bnToUint256(value);
}
if (keyAndType.includes("core::byte_array::ByteArray")) {
return byteArray.byteArrayFromString(value);
}
}
if (typeof value === "string") {
if (isJsonString(value)) {
Expand Down
Loading

0 comments on commit 4046b77

Please sign in to comment.