@quentinadam/evm-base 0.1.3 → 0.1.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.
@@ -10,7 +10,7 @@ export default function computeCREATE2Address(params, { prefixByte, addressFromB
10
10
  return keccak256(concat([bytecode, constructorArguments].filter((chunk) => chunk !== undefined)));
11
11
  })();
12
12
  const bytes = keccak256(concat([
13
- new Uint8Array(prefixByte),
13
+ new Uint8Array([prefixByte]),
14
14
  bytesFromAddress(deployer),
15
15
  salt instanceof Uint8Array ? salt : fromUintBE(salt, 32),
16
16
  bytecodeHash,
@@ -1 +1 @@
1
- {"version":3,"file":"computeCREATE2Address.js","sourceRoot":"","sources":["../src/computeCREATE2Address.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,6BAA6B,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAC;AAEvE,MAAM,CAAC,OAAO,UAAU,qBAAqB,CAC3C,MAKG,EACH,EAAE,UAAU,EAAE,gBAAgB,EAAE,gBAAgB,EAI/C;IAED,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,MAAM,CAAC;IAClC,MAAM,YAAY,GAAG,CAAC,GAAG,EAAE;QACzB,MAAM,EAAE,YAAY,EAAE,QAAQ,EAAE,oBAAoB,EAAE,GAAG,MAAM,CAAC;QAChE,IAAI,YAAY,KAAK,SAAS,EAAE,CAAC;YAC/B,OAAO,YAAY,CAAC;QACtB,CAAC;QACD,OAAO,SAAS,CAAC,MAAM,CAAC,CAAC,QAAQ,EAAE,oBAAoB,CAAC,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,CAAC;IACpG,CAAC,CAAC,EAAE,CAAC;IACL,MAAM,KAAK,GAAG,SAAS,CAAC,MAAM,CAAC;QAC7B,IAAI,UAAU,CAAC,UAAU,CAAC;QAC1B,gBAAgB,CA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b,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC;IACf,OAAO,gBAAgB,CAAC,KAAK,CAAC,CAAC;AACjC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quentinadam/evm-base",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "EVM base library",
5
5
  "license": "MIT",
6
6
  "author": "Quentin Adam",
@@ -23,7 +23,7 @@ export default function computeCREATE2Address(
23
23
  return keccak256(concat([bytecode, constructorArguments].filter((chunk) => chunk !== undefined)));
24
24
  })();
25
25
  const bytes = keccak256(concat([
26
- new Uint8Array(prefixByte),
26
+ new Uint8Array([prefixByte]),
27
27
  bytesFromAddress(deployer),
28
28
  salt instanceof Uint8Array ? salt : fromUintBE(salt, 32),
29
29
  bytecodeHash,