Skip to content

Commit

Permalink
fix: incorrect refValue formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
JackHamer09 committed Dec 8, 2024
1 parent 94087ad commit 3121570
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 2 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/deploy-package-temp.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Deploy NPM Package

on:
pull_request:
paths:
- "packages/sdk/**"

jobs:
publish:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 9.11.0

- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: lts/Iron
cache: 'pnpm'

- name: Install dependencies
run: pnpm install -r --frozen-lockfile

- name: Build the package
run: pnpm nx build sdk

- name: Prepare package.json
working-directory: packages/sdk
run: node prepare-package.mjs
env:
INPUT_VERSION: 0.0.0-beta.6

- name: Create .npmrc
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPMJS_NPM_MATTERLABS_AUTOMATION_TOKEN }}" > ~/.npmrc

- name: Publish to NPM
working-directory: packages/sdk
run: npm publish --access public
2 changes: 1 addition & 1 deletion packages/sdk/src/client-auth-server/session/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export const encodedInputToAbiChunks = (encodedInput: string) => {
if (!encodedInput.startsWith("0x")) {
throw new Error("Input is not a valid hex string");
}
return (encodedInput.slice(2).match(/.{1,64}/g) || []) as Hash[]; // 32 bytes abi chunks
return (encodedInput.slice(2).match(/.{1,64}/g) || []).map((e) => `0x${e}`) as Hash[]; // 32 bytes abi chunks
};

const getDummyBytesValue = (type: string) => {
Expand Down

0 comments on commit 3121570

Please sign in to comment.