evm transfer native#97
Conversation
WalkthroughA new global variable for the EVM zero address is introduced. The function for creating unsigned EVM transfers is renamed and refactored to handle both native and ERC20 token transfers, distinguishing between them based on the token address. Error messages and formatting are updated accordingly. Changes
Sequence Diagram(s)sequenceDiagram
participant Caller
participant PayrollPlugin
participant EVM
Caller->>PayrollPlugin: genUnsignedTx(...)
PayrollPlugin->>PayrollPlugin: evmMakeUnsignedTransfer(...)
alt tokenID == evmZeroAddress
PayrollPlugin->>EVM: Prepare native token transfer (set value, data nil)
else tokenID != evmZeroAddress
PayrollPlugin->>EVM: Prepare ERC20 transfer (pack transfer method in data, value zero)
end
PayrollPlugin-->>Caller: Return unsigned transaction bytes
Possibly related PRs
Poem
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 golangci-lint (1.64.8)level=warning msg="[runner] Can't run linter goanalysis_metalinter: buildir: failed to load package session: could not load export data: no export data for "github.com/vultisig/go-wrappers/go-dkls/sessions"" 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🧰 Additional context used🧠 Learnings (1)plugin/payroll/transaction.go (1)🔇 Additional comments (5)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Summary by CodeRabbit
New Features
Bug Fixes
Style