Skip to content

Commit

Permalink
fix: fix contract
Browse files Browse the repository at this point in the history
  • Loading branch information
scx1332 committed May 16, 2024
1 parent 6c85e28 commit fabf648
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crates/erc20_payment_lib/config-payments.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion yatestnet/contracts/contracts/LockPayment.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit fabf648

Please sign in to comment.