Skip to content

Commit

Permalink
Add vmType in getOep4Balance2
Browse files Browse the repository at this point in the history
  • Loading branch information
leej1012 committed Nov 14, 2023
1 parent 8960189 commit 29a9f73
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,14 @@ public class BalanceDto {

private String contractHash;

private String vmType;

@Builder
public BalanceDto(BigDecimal balance, String assetName, String assetType, String contractHash) {
public BalanceDto(BigDecimal balance, String assetName, String assetType, String contractHash, String vmType) {
this.balance = balance;
this.assetName = assetName;
this.assetType = assetType;
this.contractHash = contractHash;
this.vmType = vmType;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -608,6 +608,7 @@ private List<BalanceDto> getOep4Balance2(String address, Oep4 oep4) {
.assetType(ConstantParam.ASSET_TYPE_OEP4)
.balance(balance)
.contractHash(oep4.getContractHash())
.vmType(oep4.getVmCategory())
.build();
balanceList.add(balanceDto);
return balanceList;
Expand Down

0 comments on commit 29a9f73

Please sign in to comment.