aptos-core
aptos-core copied to clipboard
added a function to return resource address from source and seeds
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.