Skip to content

Commit

Permalink
Fix (#72)
Browse files Browse the repository at this point in the history
* test larger permit than transfer

* fix lock

* fix responses and types

* update version
  • Loading branch information
andy-t-wang authored Sep 27, 2024
1 parent 8a9e982 commit edc668d
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 55 deletions.
4 changes: 2 additions & 2 deletions demo/with-next/components/ClientContent/Transaction.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ export const SendTransaction = () => {
const permitTransfer = {
permitted: {
token: testTokens.worldchain.USDCE,
amount: "10000",
amount: "100000",
},
nonce: Date.now().toString(),
deadline,
Expand Down Expand Up @@ -197,7 +197,7 @@ export const SendTransaction = () => {
const permitTransfer2 = {
permitted: {
token: testTokens.worldchain.USDCE,
amount: "20000",
amount: "2000000",
},
nonce: deadline,
deadline,
Expand Down
102 changes: 51 additions & 51 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/package.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"name": "@worldcoin/minikit-js",
"version": "0.0.31-internal-alpha",
"version": "0.0.32-internal-alpha",
"homepage": "https://docs.worldcoin.org/id/minikit",
"description": "Internal Alpha: Mini-kit JS is a lightweight sdk for building mini-apps compatible with World App",
"license": "MIT",
"private": false,
"type": "module",
"exports": {
".": {
"import": "./build/index.js",
"types": "./build/index.d.ts",
"import": "./build/index.js",
"require": "./build/index.cjs"
}
},
Expand Down
3 changes: 3 additions & 0 deletions src/types/responses.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ export type MiniAppSendTransactionSuccessPayload = {
export type MiniAppSendTransactionErrorPayload = {
status: "error";
error_code: SendTransactionErrorCodes;
debugUrl?: string;
version: number;
};

Expand All @@ -109,6 +110,7 @@ export type MiniAppSignMessageSuccessPayload = {
export type MiniAppSignMessageErrorPayload = {
status: "error";
error_code: SignMessageErrorCodes;
debugUrl?: string;
version: number;
};

Expand All @@ -126,6 +128,7 @@ export type MiniAppSignTypedDataSuccessPayload = {
export type MiniAppSignTypedDataErrorPayload = {
status: "error";
error_code: SignTypedDataErrorCodes;
debugUrl?: string;
version: number;
};

Expand Down

0 comments on commit edc668d

Please sign in to comment.