Skip to content

Commit

Permalink
enable polygon (#116)
Browse files Browse the repository at this point in the history
  • Loading branch information
StewartYe authored May 7, 2023
1 parent 66678bb commit e9aeb08
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# v0.5.1

- enable polygon

# v0.5.0-rc3

- update sidecar
Expand Down
1 change: 1 addition & 0 deletions engine/src/fusotao/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ pub enum OnchainToken {
ERC20(Vec<u8>, Vec<u8>, u128, bool, u8),
BEP20(Vec<u8>, Vec<u8>, u128, bool, u8),
FND10(Vec<u8>, u128),
POLYGON(Vec<u8>, Vec<u8>, u128, bool, u8),
}

#[derive(Clone, Decode, Debug, Default)]
Expand Down
4 changes: 0 additions & 4 deletions sidecar/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ impl Config {
fn decrypt(&mut self, key: &str) -> anyhow::Result<()> {
use magic_crypt::MagicCryptTrait;
let mc = magic_crypt::new_magic_crypt!(key, 64);
let dec = mc.decrypt_base64_to_string(&self.prover)?;
self.prover.replace_range(.., &dec);
let dec = mc.decrypt_base64_to_string(&self.db)?;
self.db.replace_range(.., &dec);
Ok(())
Expand All @@ -46,8 +44,6 @@ impl Config {
fn encrypt(&mut self, key: &str) -> anyhow::Result<()> {
use magic_crypt::MagicCryptTrait;
let mc = magic_crypt::new_magic_crypt!(key, 64);
let enc = mc.encrypt_str_to_base64(&self.prover);
self.prover.replace_range(.., &enc);
let enc = mc.encrypt_str_to_base64(&self.db);
self.db.replace_range(.., &enc);
Ok(())
Expand Down

0 comments on commit e9aeb08

Please sign in to comment.