@crossecute/protocol 0.1.0 → 0.1.1

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.
@@ -23,7 +23,7 @@ library ProxyInitCode {
23
23
 
24
24
  /// @notice Deploy the code-only contract. `Proxy`'s initcode appears only in the caller's
25
25
  /// initcode when this runs from a constructor.
26
- function store() internal returns (address at) {
26
+ function store() internal returns (address initCodeStore) {
27
27
  bytes memory initCode = type(Proxy).creationCode;
28
28
  // PUSH2 len, DUP1, PUSH1 12, PUSH1 0, CODECOPY, PUSH1 0, RETURN: on any call, returns what
29
29
  // follows this 12-byte prefix, the initcode.
@@ -33,15 +33,15 @@ library ProxyInitCode {
33
33
  // forge-lint: disable-next-line(unsafe-typecast) a constant 0.6 KB
34
34
  bytes memory creation = abi.encodePacked(hex"63", uint32(runtime.length), hex"80600e6000396000f3", runtime);
35
35
  assembly {
36
- at := create(0, add(creation, 0x20), mload(creation))
36
+ initCodeStore := create(0, add(creation, 0x20), mload(creation))
37
37
  }
38
- if (at == address(0)) revert StoreFailed();
38
+ if (initCodeStore == address(0)) revert StoreFailed();
39
39
  }
40
40
 
41
- /// @notice The initcode `store` kept at `at`.
42
- function load(address at) internal view returns (bytes memory code) {
41
+ /// @notice The initcode `store` kept at `initCodeStore`.
42
+ function load(address initCodeStore) internal view returns (bytes memory code) {
43
43
  bool ok;
44
- (ok, code) = at.staticcall("");
44
+ (ok, code) = initCodeStore.staticcall("");
45
45
  if (!ok || code.length == 0) revert StoreFailed();
46
46
  }
47
47
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crossecute/protocol",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Crossecute protocol interfaces, libraries and ABIs for integrators",
5
5
  "license": "MIT",
6
6
  "repository": {