i want to develop a contract where. when the function Optimizer is called it will send a specific amount of bnb to a specific wallet address, problem is the wallet address is not receiving the amount when i call the optimizer function.
** i am using bsc testnet and metamask.
pragma solidity ^0.8.7;
// SPDX-License-Identifier: GPL-3.0
contract AB {
address payable b= payable(0x9997aBff396d699FBFCEcbC17d69Bbe9343bD13e);
function Optimizer( )public payable{
msg.value==1000000000000000000 wei;
require(msg.value==1000000000000000000 wei);
b.transfer(msg.value);
}
}