aptos-core icon indicating copy to clipboard operation
aptos-core copied to clipboard

added a function to return resource address from source and seeds

Open dhruvja opened this issue 3 years ago • 0 comments

Description

This PR is related to the issue #3739 created to add a function in TS SDK to fetch the resource account given that the source address and seeds are provided.

Test Plan

I have added a function getResourceAccountAddress with 2 parameters sourceAddress and seeds which are used to derive the resource account. Since the resource account derivation is expensive on chain, we can use this method to derive if off chain and send it to the smart contract. This is second PR i am opening, the last PR had some issues with package.json and yarn.lock. The old PR #3822 was closed. A test is also added to check the functionality.


This change is Reviewable

dhruvja avatar Oct 10 '22 14:10 dhruvja