Skip to content

Commit

Permalink
add test for maxamt
Browse files Browse the repository at this point in the history
  • Loading branch information
shawnxie999 committed Sep 12, 2024
1 parent 01cfb22 commit fe59caf
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/test/app/MPToken_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,15 @@ class MPToken_test : public beast::unit_test::suite
.ownerCount = 1,
.flags = tfMPTCanLock | tfMPTRequireAuth | tfMPTCanEscrow |
tfMPTCanTrade | tfMPTCanTransfer | tfMPTCanClawback});

// Get the hash for the most recent transaction.
std::string const txHash{
env.tx()->getJson(JsonOptions::none)[jss::hash].asString()};

Json::Value const result =
env.rpc("tx", txHash)[jss::result];
BEAST_EXPECT(
result[sfMaximumAmount.getJsonName()] == "9223372036854775807");
}
}

Expand Down

0 comments on commit fe59caf

Please sign in to comment.