@openfort/openfort-node 0.8.3 → 0.8.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/index.js +4 -10
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -15
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.8.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#72](https://github.com/openfort-xyz/openfort-node/pull/72) [`f6e6bbd249644bdb9fe287d3b363c06dabb2d77b`](https://github.com/openfort-xyz/openfort-node/commit/f6e6bbd249644bdb9fe287d3b363c06dabb2d77b) Thanks [@jamalavedra](https://github.com/jamalavedra)! - update backend wallet interactions
|
|
8
|
+
|
|
3
9
|
## 0.8.3
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
package/dist/index.js
CHANGED
|
@@ -830,7 +830,7 @@ function requiresWalletAuth(requestMethod, requestPath) {
|
|
|
830
830
|
}
|
|
831
831
|
|
|
832
832
|
// src/version.ts
|
|
833
|
-
var VERSION = "0.8.
|
|
833
|
+
var VERSION = "0.8.4";
|
|
834
834
|
var PACKAGE = "@openfort/openfort-node";
|
|
835
835
|
|
|
836
836
|
// src/openapi-client/openfortApiClient.ts
|
|
@@ -4232,19 +4232,13 @@ function toEvmAccount(data) {
|
|
|
4232
4232
|
},
|
|
4233
4233
|
async signMessage(parameters) {
|
|
4234
4234
|
const { message } = parameters;
|
|
4235
|
-
|
|
4236
|
-
|
|
4237
|
-
const result2 = await sign(id, { data: hash2 });
|
|
4238
|
-
return result2.signature;
|
|
4239
|
-
}
|
|
4240
|
-
const hash = (0, import_viem.hashMessage)(message);
|
|
4241
|
-
const result = await sign(id, { data: hash });
|
|
4235
|
+
const preimage = (0, import_viem.toPrefixedMessage)(message);
|
|
4236
|
+
const result = await sign(id, { data: preimage });
|
|
4242
4237
|
return result.signature;
|
|
4243
4238
|
},
|
|
4244
4239
|
async signTransaction(transaction) {
|
|
4245
4240
|
const serialized = (0, import_viem.serializeTransaction)(transaction);
|
|
4246
|
-
const
|
|
4247
|
-
const response = await sign(id, { data: hash });
|
|
4241
|
+
const response = await sign(id, { data: serialized });
|
|
4248
4242
|
const signature2 = (0, import_viem.parseSignature)(response.signature);
|
|
4249
4243
|
const signedTransaction = (0, import_viem.serializeTransaction)(
|
|
4250
4244
|
transaction,
|