From bbd366c0e5b959a8f8cbe0165e17287de04bb1ec Mon Sep 17 00:00:00 2001 From: Daniel Wang Date: Sat, 24 Dec 2022 14:45:52 +0800 Subject: [PATCH] rename --- packages/protocol/contracts/L2/TaikoL2.sol | 2 +- packages/protocol/contracts/libs/LibAnchorSignature.sol | 8 ++++---- .../contracts/test/libs/TestLibAnchorSignature.sol | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/packages/protocol/contracts/L2/TaikoL2.sol b/packages/protocol/contracts/L2/TaikoL2.sol index 1daa811e8bf..aca7d7c0444 100644 --- a/packages/protocol/contracts/L2/TaikoL2.sol +++ b/packages/protocol/contracts/L2/TaikoL2.sol @@ -98,7 +98,7 @@ contract TaikoL2 is AddressResolver, ReentrancyGuard, IHeaderSync { uint256 txIdx ) external { require( - msg.sender == LibAnchorSignature.K_GOLDEN_TOUCH_ADDRESS, + msg.sender == LibAnchorSignature.GOLDEN_TOUCH_ADDRESS, "L2:sender" ); require(tx.gasprice == 0, "L2:gasPrice"); diff --git a/packages/protocol/contracts/libs/LibAnchorSignature.sol b/packages/protocol/contracts/libs/LibAnchorSignature.sol index fd1e90718e2..0be5de79216 100644 --- a/packages/protocol/contracts/libs/LibAnchorSignature.sol +++ b/packages/protocol/contracts/libs/LibAnchorSignature.sol @@ -11,9 +11,9 @@ import "./LibUint512Math.sol"; /// @author david library LibAnchorSignature { - address public constant K_GOLDEN_TOUCH_ADDRESS = + address public constant GOLDEN_TOUCH_ADDRESS = 0x0000777735367b36bC9B61C50022d9D0700dB4Ec; - uint256 public constant K_GOLDEN_TOUCH_PRIVATEKEY = + uint256 public constant GOLDEN_TOUCH_PRIVATEKEY = 0x92954368afd3caa1f3ce3ead0069c1af414054aefe1ef9aeacc1bf426222ce38; uint256 public constant GX = @@ -32,7 +32,7 @@ library LibAnchorSignature { // ( // uint256 GX_MUL_GOLDEN_TOUCH_PRIVATEKEY_LOW, // uint256 GX_MUL_GOLDEN_TOUCH_PRIVATEKEY_HIGH - // ) = LibUint512Math.mul(GX, K_GOLDEN_TOUCH_PRIVATEKEY); + // ) = LibUint512Math.mul(GX, GOLDEN_TOUCH_PRIVATEKEY); uint256 public constant GX_MUL_GOLDEN_TOUCH_PRIVATEKEY_LOW = 0xb4a95509ce05fe8d45987859a067780d16a367c0e2cacf79cd301b93fb717940; uint256 public constant GX_MUL_GOLDEN_TOUCH_PRIVATEKEY_HIGH = @@ -41,7 +41,7 @@ library LibAnchorSignature { // ( // uint256 GX2_MUL_GOLDEN_TOUCH_PRIVATEKEY_LOW, // uint256 GX2_MUL_GOLDEN_TOUCH_PRIVATEKEY_HIGH - // ) = LibUint512Math.mul(GX2, K_GOLDEN_TOUCH_PRIVATEKEY); + // ) = LibUint512Math.mul(GX2, GOLDEN_TOUCH_PRIVATEKEY); uint256 public constant GX2_MUL_GOLDEN_TOUCH_PRIVATEKEY_LOW = 0xad77eceea844778cb4376153fc8f06f12f1695df4585bf75bfb17ec19ce90818; uint256 public constant GX2_MUL_GOLDEN_TOUCH_PRIVATEKEY_HIGH = diff --git a/packages/protocol/contracts/test/libs/TestLibAnchorSignature.sol b/packages/protocol/contracts/test/libs/TestLibAnchorSignature.sol index 3a80e2d2d19..2bddfb514d8 100644 --- a/packages/protocol/contracts/test/libs/TestLibAnchorSignature.sol +++ b/packages/protocol/contracts/test/libs/TestLibAnchorSignature.sol @@ -29,8 +29,8 @@ library TestLibAnchorSignature { function goldenTouchAddress() public pure returns (address, uint256) { return ( - LibAnchorSignature.K_GOLDEN_TOUCH_ADDRESS, - LibAnchorSignature.K_GOLDEN_TOUCH_PRIVATEKEY + LibAnchorSignature.GOLDEN_TOUCH_ADDRESS, + LibAnchorSignature.GOLDEN_TOUCH_PRIVATEKEY ); } }