@@ -728,7 +728,7 @@ private Any getLockedDelegateContractForBandwidth(String ownerAddress, String re
728728 .setOwnerAddress (ByteString .copyFrom (ByteArray .fromHexString (ownerAddress )))
729729 .setReceiverAddress (ByteString .copyFrom (ByteArray .fromHexString (receiveAddress )))
730730 .setBalance (unfreezeBalance )
731- .setResource (Common . ResourceCode . BANDWIDTH )
731+ .setResource (BANDWIDTH )
732732 .setLock (lock )
733733 .build ());
734734 }
@@ -753,6 +753,11 @@ public void testGetDelegatedResourceV2() {
753753 ByteString .copyFrom (ByteArray .fromHexString (OWNER_ADDRESS )),
754754 ByteString .copyFrom (ByteArray .fromHexString (RECEIVER_ADDRESS )));
755755
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 ();
756761 Assert .assertEquals (1L , delegatedResourceList .getDelegatedResourceCount ());
757762 Assert .assertEquals (ByteString .copyFrom (ByteArray .fromHexString (OWNER_ADDRESS )),
758763 delegatedResourceList .getDelegatedResource (0 ).getFrom ());
@@ -809,7 +814,7 @@ public void testGetCanDelegatedMaxSizeBandWidth() {
809814
810815 GrpcAPI .CanDelegatedMaxSizeResponseMessage message = wallet .getCanDelegatedMaxSize (
811816 ByteString .copyFrom (ByteArray .fromHexString (OWNER_ADDRESS )),
812- Common . ResourceCode . BANDWIDTH .getNumber ());
817+ BANDWIDTH .getNumber ());
813818 Assert .assertEquals (initBalance - 280L , message .getMaxSize ());
814819
815820 }
@@ -832,7 +837,7 @@ private Any getContractForBandwidthV2(String ownerAddress, long unfreezeBalance)
832837 ByteString .copyFrom (ByteArray .fromHexString (ownerAddress ))
833838 )
834839 .setUnfreezeBalance (unfreezeBalance )
835- .setResource (Common . ResourceCode . BANDWIDTH )
840+ .setResource (BANDWIDTH )
836841 .build ()
837842 );
838843 }
0 commit comments