10多年的软件开发经验,包括大数据、AI等领域,熟悉Go、Java、Python等语言使用,最近学习rust语言,目前从事技术管理、架构师相关工作

Subscribe to web3zoom


<100 subscribers
<100 subscribers
// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.30;
contract Account{
address public bank;
address public owner;
constructor(address _owner) payable{
bank = msg.sender;
owner = _owner;
}
}
contract AccountFactory{
Account[] public accounts;
function createAccount(address _owner) external payable{
Account account = new Account{value: 111}(_owner);
accounts.push(account);
}
}
通过工厂合约地址创建账户合约
// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.30;
contract Account{
address public bank;
address public owner;
constructor(address _owner) payable{
bank = msg.sender;
owner = _owner;
}
}
contract AccountFactory{
Account[] public accounts;
function createAccount(address _owner) external payable{
Account account = new Account{value: 111}(_owner);
accounts.push(account);
}
}
通过工厂合约地址创建账户合约
Share Dialog
Share Dialog
No activity yet