Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updated to bytes_sold and bytes_purchased #53

Merged
merged 1 commit into from
Feb 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading