CRYPTO NEWS

The First Wedding in Metaverse Concludes and Sandbox Celebrates the Happiness

Clarence Chan and Joanne Tham married in the metaverse, courtesy of the partnership between The Sandbox, 1-Group, and Smobler Studios. The wedding was themed around 70s disco energy and the virtual backdrop of the Alkaff Mansion. The mansion is known to be the most exquisite place for getting married in Singapore. Its digital version was …

I’m having issues withdrawing funds from this test contract

solidity “`contract FundMe { using PriceConverter for uint256; mapping(address => uint256) public addressToAmountFunded; address[] public funders; // Could we make this constant? /* hint: no! We should make it immutable! */ address public /* immutable */ owner; uint256 public constant MINIMUM_USD = 50 * 10 ** 18; //constructor() { // i_owner = msg.sender; // }::Listen

solidity “`contract FundMe { using PriceConverter for uint256;

mapping(address => uint256) public addressToAmountFunded; address[] public funders;  // Could we make this constant?  /* hint: no! We should make it immutable! */ address public /* immutable */ owner; uint256 public constant MINIMUM_USD = 50 * 10 ** 18;  //constructor() {    // i_owner = msg.sender; 

// } constructor() { owner = msg.sender; } function fund() public payable { require(msg.value.getConversionRate() >= MINIMUM_USD, "You need to spend more ETH!"); // require(PriceConverter.getConversionRate(msg.value) >= MINIMUM_USD, "You need to spend more ETH!"); addressToAmountFunded[msg.sender] += msg.value; funders.push(msg.sender); } //starting index; ending index; step amount function Withdraw() public OnlyOwner { for(uint256 funderIndex = 0; funderIndex < funders.length; funderIndex = funderIndex ++){ address funder = funders[funderIndex]; addressToAmountFunded[funder] = 0;

    }     //resetting the array     funders = new address[] (0);      //actually withdraw the funds     // transfer, send or call     //msg.sender = adddress     // payable (msg.sender) = withdrawable contract     (bool callSuccess, ) = payable (msg.sender).call{value: address(this).balance}("");     require(callSuccess, "Call Failed");      } 

modifier OnlyOwner { require(msg.sender == owner, "Sender is not Owner!"); _; } }“`

The First Wedding in Metaverse Concludes and Sandbox Celebrates the Happiness

Shopping cart
There are no products in the cart!
Continue shopping
0