diff --git a/crates/erc20_payment_lib/config-payments.toml b/crates/erc20_payment_lib/config-payments.toml index 374fcbd3..5747697a 100644 --- a/crates/erc20_payment_lib/config-payments.toml +++ b/crates/erc20_payment_lib/config-payments.toml @@ -142,7 +142,7 @@ transaction-timeout = 100 token = { address = "0x8888888815bf4DB87e57B609A50f938311EEd068", symbol = "tGLM" } multi-contract = { address = "0xAaAAAaA00E1841A63342db7188abA84BDeE236c7", max-at-once = 10 } mint-contract = { address = "0xFACe100969FF47EB58d2CF603321B581A84bcEaC", max-glm-allowed = 400 } -lock-contract = { address = "0x26675196863d8Cc7519b3F0ef5e7BC79f7CaC070" } +lock-contract = { address = "0x9d9478De5223Fd45126E8E923dB5FAe5d38a400B" } distributor-contract = { address = "0xb7Fb99e86f93dc3047A12932052236d853065173" } faucet-client = { max-eth-allowed = 0.009, faucet-srv = "_holesky-faucet._tcp", faucet-host = "faucet.testnet.golem.network", faucet-lookup-domain = "dev.golem.network", faucet-srv-port = 4002 } confirmation-blocks = 0 diff --git a/yatestnet/contracts/contracts/LockPayment.sol b/yatestnet/contracts/contracts/LockPayment.sol index 8e046605..d7632412 100644 --- a/yatestnet/contracts/contracts/LockPayment.sol +++ b/yatestnet/contracts/contracts/LockPayment.sol @@ -124,7 +124,7 @@ contract LockPayment is ILockPayment { //check if id is not used uint256 id = idFromNonce(nonce); //this checks if deposit is not already created with this id - require(deposits[id].spender != address(0), "deposits[id].spender != address(0)"); + require(deposits[id].spender == address(0), "deposits[id].spender == address(0)"); require(amount > 0, "amount > 0"); require(spender != address(0), "spender cannot be null address"); require(msg.sender != spender, "spender cannot be funder");