-
Notifications
You must be signed in to change notification settings - Fork 102
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
wasm scope proposal #3093
wasm scope proposal #3093
Conversation
# Conflicts: # packages/yoroi-ergo-connector/example-cardano/index.js
packages/yoroi-extension/app/api/ada/lib/cardanoCrypto/rustLoader.js
Outdated
Show resolved
Hide resolved
I was trying to write some unit testing // rustLoader.test.js
it('Test...', () => {
const addr = 'addr1qf2w3pe8jsyvr9kutpv6e0rzuaym7dvq0rrz9699a7y3wwvz6g3gz764vxla692p4ttcekdw0smpedxuqq7a8t8sv3usrcv98z';
const fixedAddr = RustModule.WasmScope(Module => bytesToHex(
Module.WalletV4.Address.from_bech32(addr).to_bytes()
));
console.log(fixedAddr)
}) But I got the |
@AhmedIbrahim336 , weird, call stack should not be happening. I have added some fixes, and also added a unit test now, plz check again: 6056e15 UPD: latest version of the test is here https://github.com/Emurgo/yoroi-frontend/blob/c9a6df5413a679b051fff42d8431e1d8de02c9bb/packages/yoroi-extension/app/api/ada/lib/cardanoCrypto/rustLoader.test.js |
Nice, I will check it! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/check
No description provided.