Skip to content

Commit

Permalink
Merge pull request #53 from AntelopeIO/ehp/gh-52-bytes_sold
Browse files Browse the repository at this point in the history
updated to bytes_sold and bytes_purchased
  • Loading branch information
ericpassmore authored Feb 6, 2024
2 parents ef2bb7b + ab0858b commit 60ed21f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions contracts/eosio.system/include/eosio.system/eosio.system.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -548,15 +548,15 @@ namespace eosiosystem {
struct action_return_sellram {
name account;
asset quantity;
int64_t bytes;
int64_t bytes_sold;
int64_t ram_bytes;
};

struct action_return_buyram {
name payer;
name receiver;
asset quantity;
int64_t bytes;
int64_t bytes_purchased;
int64_t ram_bytes;
};

Expand Down
10 changes: 5 additions & 5 deletions tests/eosio.system_ram_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ BOOST_FIXTURE_TEST_CASE( buy_sell_ram_validate, eosio_system_tester ) try {
"payer": "alice",
"receiver": "alice",
"quantity": "0.1462 TST",
"bytes": 9991,
"bytes_purchased": 9991,
"ram_bytes": 17983
}
)=====";
Expand All @@ -92,7 +92,7 @@ BOOST_FIXTURE_TEST_CASE( buy_sell_ram_validate, eosio_system_tester ) try {
{
"account": "alice",
"quantity": "0.1455 TST",
"bytes": 10000,
"bytes_sold": 10000,
"ram_bytes": 7983
}
)=====";
Expand All @@ -104,7 +104,7 @@ BOOST_FIXTURE_TEST_CASE( buy_sell_ram_validate, eosio_system_tester ) try {
"payer": "bob",
"receiver": "alice",
"quantity": "2.0000 TST",
"bytes": 136750,
"bytes_purchased": 136750,
"ram_bytes": 144733
}
)=====";
Expand All @@ -130,7 +130,7 @@ BOOST_FIXTURE_TEST_CASE( ram_burn, eosio_system_tester ) try {
"payer": "bob",
"receiver": "bob",
"quantity": "10.0000 TST",
"bytes": 683747,
"bytes_purchased": 683747,
"ram_bytes": 691739
}
)=====";
Expand Down Expand Up @@ -179,7 +179,7 @@ BOOST_FIXTURE_TEST_CASE( buy_ram_self, eosio_system_tester ) try {
"payer": "alice",
"receiver": "alice",
"quantity": "2.0000 TST",
"bytes": 136750,
"bytes_purchased": 136750,
"ram_bytes": 213117
}
)=====";
Expand Down
4 changes: 2 additions & 2 deletions tests/eosio.system_tester.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ class eosio_system_tester : public TESTER {
"type": "asset"
},
{
"name": "bytes",
"name": "bytes_purchased",
"type": "int64"
},
{
Expand Down Expand Up @@ -301,7 +301,7 @@ class eosio_system_tester : public TESTER {
"type": "asset"
},
{
"name": "bytes",
"name": "bytes_sold",
"type": "int64"
},
{
Expand Down

0 comments on commit 60ed21f

Please sign in to comment.