有sol合约函数mint():
public class DeckSheet extends JPanel {
private JButton pack = new JButton();
private JButton delt = new JButton();
@Override
protected void paintComponent(Graphics g){
ImageIcon bgImage = new ImageIcon("./Pictures/DeckBack2.png");
Image bg = bgImage.getImage();
super.paintComponent(g);
g.drawImage(bg, 0, 0, null);
}
public DeckSheet(String DName){
setSize(550,100);
setBackground(null);
setLayout(new BorderLayout());
pack.setText(DName);
pack.setPreferredSize(new Dimension(100,100));
pack.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
//Filling this in later
}
});
add(pack,BorderLayout.LINE_START);
JPanel JP = new JPanel();
JP.setBackground(null);
JP.setLayout(new FlowLayout());
JPanel JPin1 = new JPanel();
JPanel JPin2 = new JPanel();
JPanel JPin3 = new JPanel();
JPin1.setPreferredSize(new Dimension(520,33));
//JPin1.setBackground(null);
JP.add(JPin1);
JPin2.setPreferredSize(new Dimension(520,14));
JP.add(JPin2);
JPin3.setPreferredSize(new Dimension(520,33));
//JPin3.setBackground(null);
JP.add(JPin3);
add(JP,BorderLayout.CENTER);
delt.setBackground(null);
delt.setOpaque(false);
delt.setContentAreaFilled(false);
delt.setBorderPainted(false);
delt.setPreferredSize(new Dimension(50,100));
delt.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
//Filling this in later
}
});
add(delt,BorderLayout.LINE_END);
repaint();
}
}
我勉强调用此函数创建10000个令牌并将它们发送到eth.accounts [0]:
personal.unlockAccount(eth.accounts [0])
真
minedContract.mint.sendTransaction(eth.accounts [0],10000,{from:eth.accounts [0]})
" 0x6e4474072ebf2836fa6b737a6341504f79b53417e366c742c7ffefa0f3aff832"
但是eth.accounts [0]的余额仍然是0.合同的总余额也是0。我等到它开采了。 为什么合同的状态没有变化?
答案 0 :(得分:0)
我已经重复了我自己的步骤来重现上述行为,但因为一切正常而失败。由于人为因素而如此封闭。