xiaoyong931011
2023-07-03 0003d3f530a88399de016e62c31bcccf7d5d4592
andao上联测试
2 files modified
6 ■■■■ changed files
src/main/java/cc/mrbird/febs/dapp/contract/andao/Abi.java 4 ●●●● patch | view | raw | blame | history
src/main/java/cc/mrbird/febs/dapp/contract/andao/AndaoContractMain.java 2 ●●● patch | view | raw | blame | history
src/main/java/cc/mrbird/febs/dapp/contract/andao/Abi.java
@@ -196,6 +196,10 @@
                Contract.EventValuesWithLog eventValues = extractEventParametersWithLog(TRANSFER_EVENT, log);
                TransferEventResponse typedResponse = new TransferEventResponse();
                typedResponse.log = log;
                if(eventValues==null){
                    // 为空则直接返回空对象
                    return typedResponse;
                }
                typedResponse.from = (String) eventValues.getIndexedValues().get(0).getValue();
                typedResponse.to = (String) eventValues.getIndexedValues().get(1).getValue();
                typedResponse.value = (BigInteger) eventValues.getNonIndexedValues().get(0).getValue();
src/main/java/cc/mrbird/febs/dapp/contract/andao/AndaoContractMain.java
@@ -160,7 +160,7 @@
    public static void main(String[] args) {
        AndaoContractMain andaoContractMain = new AndaoContractMain();
        String address = "0xAdC5331AC7F46c63e877aeC2DFbB5523C7680812";
        String address = "0x7a9bfE048d110EF90a467803653f9B8666f9096C";
//        String address = "0x785D5Aa2951Ac4C6f28Dc593AF0b0536Dd3E82Fe";
        BigInteger bigInteger = new BigInteger(Convert.toWei("1", Convert.Unit.ETHER).setScale(0).toString());
        String hash = andaoContractMain.trans(bigInteger,address);