vechain-sdk-js icon indicating copy to clipboard operation
vechain-sdk-js copied to clipboard

Add delegator to contract calls

Open Valazan opened this issue 10 months ago • 1 comments

Setting delegation when a smart contract is called

This PR allows to set a delegator when a smart contract is called:

e.g.


const transferResult = await contract.transact.transfer(
    '0x9e7911de289c3c856ce7f421034f66b6cde49c39',
    10000,
    {
        delegatorPrivateKey: delegatorAccount.privateKey
    }
);

Valazan avatar Apr 24 '24 09:04 Valazan

Test Coverage

Summary

Lines Statements Branches Functions
Coverage: 99%
99.96% (3106/3107) 100% (657/657) 100% (647/647)
Title Tests Skipped Failures Errors Time
core 463 0 :zzz: 0 :x: 0 :fire: 1m 4s :stopwatch:
network 589 0 :zzz: 0 :x: 0 :fire: 3m 31s :stopwatch:
errors 48 0 :zzz: 0 :x: 0 :fire: 14.789s :stopwatch:

github-actions[bot] avatar Apr 24 '24 10:04 github-actions[bot]