Skip to content

Commit

Permalink
Fix: chainId changed
Browse files Browse the repository at this point in the history
  • Loading branch information
rkmonarch committed Oct 30, 2023
1 parent d15ad45 commit eaca345
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 11 deletions.
5 changes: 3 additions & 2 deletions tests/identity/create.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ describe("module: create-identity", () => {
"provider": "pay",
"default": {
"address": "0x10D98B111bee373Eef82C2ae301C867bB002A312",
"chain": 2,
"chain": 1,
"isMultisig": false,
"isSmartContractWallet": true
},
Expand All @@ -28,4 +28,5 @@ describe("module: create-identity", () => {
}
});
expect(ID).toBeDefined();
})});
})
});
4 changes: 2 additions & 2 deletions tests/identity/generate-message.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ describe("module: generate-message", () => {
"provider": "pay",
"default": {
"address": "0x10D98B111bee373Eef82C2ae301C867bB002A312",
"chain": 2,
"chain": 1,
"isMultisig": false,
"isSmartContractWallet": true
},
Expand All @@ -22,7 +22,7 @@ describe("module: generate-message", () => {
"isSmartContractWallet": false
}
]
}
}
)
console.log(message);
expect(message).toBeDefined();
Expand Down
2 changes: 0 additions & 2 deletions tests/identity/get.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,12 @@ describe("module: get-identity", () => {
const fetcch = new Fetcch("4ff9ecc8-4537-4e2e-950d-0cefbd16f2a5")

test("get identity by a handle", async () => {

try {
const ID = await fetcch.identity.get("vpay");
console.log(ID);
expect(ID).toBeDefined();

} catch (error: AxiosError | any) {

console.log("error", error.response);
// expect(error).toBeDefined()
}
Expand Down
10 changes: 5 additions & 5 deletions tests/identity/update.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ describe("module: update-identity", () => {
const fetcch = new Fetcch("4ff9ecc8-4537-4e2e-950d-0cefbd16f2a5");
test("update identity", async () => {
const identity = await fetcch.identity.update({
"id": "satyam@fetcch",
"identifier": "satyam",
"provider": "fetcch",
"id": "rk@pay",
"identifier": "rk",
"provider": "pay",
"default": {
"address": "0x1DCcc9BaF7E8d7A18f948acD467CE016044fC546",
"address": "0x10D98B111bee373Eef82C2ae301C867bB002A312",
"chain": 1,
"isMultisig": false,
"isSmartContractWallet": false
"isSmartContractWallet": true
},
"secondary": [
{
Expand Down

0 comments on commit eaca345

Please sign in to comment.