@@ -728,7 +728,7 @@ private Any getLockedDelegateContractForBandwidth(String ownerAddress, String re
728
728
.setOwnerAddress (ByteString .copyFrom (ByteArray .fromHexString (ownerAddress )))
729
729
.setReceiverAddress (ByteString .copyFrom (ByteArray .fromHexString (receiveAddress )))
730
730
.setBalance (unfreezeBalance )
731
- .setResource (Common . ResourceCode . BANDWIDTH )
731
+ .setResource (BANDWIDTH )
732
732
.setLock (lock )
733
733
.build ());
734
734
}
@@ -753,6 +753,11 @@ public void testGetDelegatedResourceV2() {
753
753
ByteString .copyFrom (ByteArray .fromHexString (OWNER_ADDRESS )),
754
754
ByteString .copyFrom (ByteArray .fromHexString (RECEIVER_ADDRESS )));
755
755
756
+ Protocol .Account account = Protocol .Account .newBuilder ()
757
+ .setAddress (ByteString .copyFrom (ByteArray .fromHexString (OWNER_ADDRESS ))).build ();
758
+ wallet .getAccount (account );
759
+ wallet .getProposalList ();
760
+ wallet .getWitnessList ();
756
761
Assert .assertEquals (1L , delegatedResourceList .getDelegatedResourceCount ());
757
762
Assert .assertEquals (ByteString .copyFrom (ByteArray .fromHexString (OWNER_ADDRESS )),
758
763
delegatedResourceList .getDelegatedResource (0 ).getFrom ());
@@ -809,7 +814,7 @@ public void testGetCanDelegatedMaxSizeBandWidth() {
809
814
810
815
GrpcAPI .CanDelegatedMaxSizeResponseMessage message = wallet .getCanDelegatedMaxSize (
811
816
ByteString .copyFrom (ByteArray .fromHexString (OWNER_ADDRESS )),
812
- Common . ResourceCode . BANDWIDTH .getNumber ());
817
+ BANDWIDTH .getNumber ());
813
818
Assert .assertEquals (initBalance - 280L , message .getMaxSize ());
814
819
815
820
}
@@ -832,7 +837,7 @@ private Any getContractForBandwidthV2(String ownerAddress, long unfreezeBalance)
832
837
ByteString .copyFrom (ByteArray .fromHexString (ownerAddress ))
833
838
)
834
839
.setUnfreezeBalance (unfreezeBalance )
835
- .setResource (Common . ResourceCode . BANDWIDTH )
840
+ .setResource (BANDWIDTH )
836
841
.build ()
837
842
);
838
843
}
0 commit comments