Created
August 21, 2021 12:27
-
-
Save tech-engine/9b1b4bd47b118e872db471c2023b10ba to your computer and use it in GitHub Desktop.
Document Porting An Existing Ethereum DApp To Polyjuice - getPolyJuiceAddr
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var App = { | |
getPolyJuiceAddr: async () => { | |
const addressTranslator = new AddressTranslator() | |
const polyjuiceAddress = addressTranslator.ethAddressToGodwokenShortAddress(App.account) | |
$('#poly-address').text(polyjuiceAddress) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment