File tree Expand file tree Collapse file tree
main/java/org/tron/core/config/args Expand file tree Collapse file tree Original file line number Diff line number Diff line change 7373import org .tron .core .store .AccountStore ;
7474import org .tron .keystore .Credentials ;
7575import org .tron .keystore .WalletUtils ;
76- import org .tron .p2p .P2pConfig ;
7776import org .tron .p2p .dns .update .DnsType ;
7877import org .tron .p2p .dns .update .PublishConfig ;
7978import org .tron .p2p .utils .NetUtil ;
Original file line number Diff line number Diff line change @@ -532,6 +532,16 @@ public void getPaginatedProposalList() {
532532
533533 }
534534
535+ @ Test
536+ public void testGetProposalById () {
537+ buildProposal ();
538+ //
539+ Proposal proposal = wallet .getProposalById (ByteString .copyFrom (ByteArray .fromLong (1L )));
540+ Assert .assertNotNull (proposal );
541+ proposal = wallet .getProposalById (ByteString .copyFrom (ByteArray .fromLong (3L )));
542+ Assert .assertNull (proposal );
543+ }
544+
535545 @ Test
536546 public void getPaginatedExchangeList () {
537547 buildExchange ();
You can’t perform that action at this time.
0 commit comments