Skip to content

Commit

Permalink
Create nexus_blockchain_smart_contract.sol
Browse files Browse the repository at this point in the history
  • Loading branch information
KOSASIH authored Jul 12, 2024
1 parent dc86d03 commit 2ef4fc0
Showing 1 changed file with 19 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
pragma solidity ^0.8.0;

contract NexusBlockchainSmartContract {
address private owner;
mapping (address => uint256) public balances;

constructor() public {
owner = msg.sender;
}

function transferFunds(address recipient, uint256 amount) public {
require(msg.sender == owner, "Only the owner can transfer funds");
balances[recipient] += amount;
}

function getBalance(address account) public view returns (uint256) {
return balances[account];
}
}

0 comments on commit 2ef4fc0

Please sign in to comment.