Skip to content

Commit

Permalink
make bridge contract works with UOS
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam-Ultra authored and igor-sikachyna committed Nov 15, 2024
1 parent b106fba commit a023c16
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ void deposit_proxy::transfer(eosio::name from, eosio::name to, eosio::asset quan

eosio::check(memo_has_evm_address, "memo must be a valid EVM address");

constexpr extended_symbol EOS = eosio::extended_symbol{eosio::symbol{"EOS",4}, "eosio.token"_n};
constexpr extended_symbol EOS = eosio::extended_symbol{eosio::symbol{"UOS",4}, "eosio.token"_n};
const auto s = eosio::extended_symbol{quantity.symbol, get_first_receiver()};

auto destination = s == EOS ? "eosio.evm"_n : "eosio.erc2o"_n;
Expand Down
2 changes: 1 addition & 1 deletion antelope_contracts/contracts/erc20/include/erc20/types.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ constexpr uint64_t default_evm_init_gaslimit = 10000000;
constexpr eosio::name default_evm_account(eosio::name("eosio.evm"));

constexpr unsigned evm_precision = 18; // precision of native token(aka.EOS) in EVM side
constexpr eosio::symbol default_native_token_symbol("EOS", 4u);
constexpr eosio::symbol default_native_token_symbol("UOS", 4u);

} // namespace erc20
2 changes: 1 addition & 1 deletion antelope_contracts/contracts/stubs/stub_evm_runtime.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ using namespace eosio;
namespace stub {

typedef std::vector<char> bytes;
constexpr eosio::symbol token_symbol("EOS", 4u);
constexpr eosio::symbol token_symbol("UOS", 4u);

struct bridge_message_v0 {
eosio::name receiver;
Expand Down

0 comments on commit a023c16

Please sign in to comment.