• Ori Pomerantz's avatar
    feat(sdk): Make it easier to get transaction estimates · 64bc3500
    Ori Pomerantz authored
    Description:
    
    Instead of adding all the transaction fields, have serialize only add the fields we need.
    
    This lets developers use the code pattern:
    
    ```js
    const txReq = await greeter.populateTransaction.setGreeting(greeting)
    const tx = await signer.populateTransaction(txReq)
    provider.estimateL1Gas(tx)
    ```
    
    Instead of the more error prone:
    
    ```js
    const txReq = await greeter.populateTransaction.setGreeting(greeting)
    const tx = await signer.populateTransaction(txReq)
    delete tx.from
    delete tx.chainId
    provider.estimateL1Gas(tx)
    ```
    64bc3500
Name
Last commit
Last update
..
src Loading commit data...
test Loading commit data...
.depcheckrc Loading commit data...
.eslintrc.js Loading commit data...
.gitignore Loading commit data...
.lintstagedrc.yml Loading commit data...
.prettierrc.js Loading commit data...
CHANGELOG.md Loading commit data...
LICENSE Loading commit data...
README.md Loading commit data...
hardhat.config.ts Loading commit data...
package.json Loading commit data...
tsconfig.build.json Loading commit data...
tsconfig.json Loading commit data...