@nomicfoundation/edr 0.11.1 → 0.11.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nomicfoundation/edr",
3
- "version": "0.11.1",
3
+ "version": "0.11.3",
4
4
  "devDependencies": {
5
5
  "@napi-rs/cli": "^2.18.4",
6
6
  "@types/chai": "^4.2.0",
@@ -16,6 +16,7 @@
16
16
  "eslint-plugin-import": "2.27.5",
17
17
  "eslint-plugin-mocha": "10.4.1",
18
18
  "eslint-plugin-prettier": "5.2.1",
19
+ "ethers": "^6.1.0",
19
20
  "json-stream-stringify": "^3.1.4",
20
21
  "mocha": "^10.0.0",
21
22
  "prettier": "^3.2.5",
@@ -52,13 +53,13 @@
52
53
  "repository": "NomicFoundation/edr.git",
53
54
  "types": "index.d.ts",
54
55
  "dependencies": {
55
- "@nomicfoundation/edr-darwin-arm64": "0.11.1",
56
- "@nomicfoundation/edr-darwin-x64": "0.11.1",
57
- "@nomicfoundation/edr-linux-arm64-gnu": "0.11.1",
58
- "@nomicfoundation/edr-linux-arm64-musl": "0.11.1",
59
- "@nomicfoundation/edr-linux-x64-gnu": "0.11.1",
60
- "@nomicfoundation/edr-linux-x64-musl": "0.11.1",
61
- "@nomicfoundation/edr-win32-x64-msvc": "0.11.1"
56
+ "@nomicfoundation/edr-darwin-arm64": "0.11.3",
57
+ "@nomicfoundation/edr-darwin-x64": "0.11.3",
58
+ "@nomicfoundation/edr-linux-arm64-gnu": "0.11.3",
59
+ "@nomicfoundation/edr-linux-arm64-musl": "0.11.3",
60
+ "@nomicfoundation/edr-linux-x64-gnu": "0.11.3",
61
+ "@nomicfoundation/edr-linux-x64-musl": "0.11.3",
62
+ "@nomicfoundation/edr-win32-x64-msvc": "0.11.3"
62
63
  },
63
64
  "scripts": {
64
65
  "artifacts": "napi artifacts",
@@ -1,6 +1,11 @@
1
1
  use napi_derive::napi;
2
2
 
3
3
  #[napi]
4
- pub fn link_hex_string_bytecode(code: String, address: String, position: u32) -> String {
4
+ pub fn link_hex_string_bytecode(
5
+ code: String,
6
+ address: String,
7
+ position: u32,
8
+ ) -> napi::Result<String> {
5
9
  edr_solidity::library_utils::link_hex_string_bytecode(code, &address, position)
10
+ .map_err(|err| napi::Error::from_reason(err.to_string()))
6
11
  }