Verified contractPartialMIT
reciever
Address0x484cf4c5dc6d213acbc3c7b3f29c23f6935db57c
- Balance
0 ETH
- Transactions
2
- Compiler
solc 0.8.0
- Same code
Only this contract
Details
- Compiler
- solc 0.8.0+commit.c7dfd78e
- Language
- solidity
- Optimization
- No
- License
- MIT
- Match
- Partialcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 14,062,900
- Creation transaction
- 0xc536b33e80…42efc53115
reciever.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.0;
contract reciever{
address immutable owner;
address payable recieverAccount;
constructor(address _reciever){
owner=msg.sender;
recieverAccount=payable(_reciever);
}
receive() external payable {
recieverAccount.transfer(address(this).balance);
}
function updateReciever(address _reciever) public {
require(msg.sender==owner);
recieverAccount=payable(_reciever);
}
}Compiler settingsShow
{
"optimizer": {
"runs": 0,
"enabled": false
}
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.