Skip to content

Commit

Permalink
feat: add SmartAccount to provide better support for AA
Browse files Browse the repository at this point in the history
  • Loading branch information
danijelTxFusion committed May 20, 2024
1 parent c9e80c3 commit 65a5686
Show file tree
Hide file tree
Showing 18 changed files with 3,006 additions and 158 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ generate-contracts:
cd scripts/generate-contracts && ./execute.sh && cd ../..

run-tests-on-eth-based-chain:
go test -v -skip='^.*_NonEthBasedChain_.*$\' ./test ./utils
go test -v -skip='^.*_NonEthBasedChain_.*$\' ./test ./accounts ./utils

run-tests-on-non-eth-based-chain:
go test -v -skip='^.*_EthBasedChain_.*$\' ./test ./utils
go test -v -skip='^.*_EthBasedChain_.*$\' ./test ./accounts ./utils

check-format:
cd scripts/ && ./check-format.sh && cd ../..
Expand Down
2 changes: 2 additions & 0 deletions accounts/signer.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,8 @@ func (s *BaseSigner) SignTypedData(domain *eip712.Domain, data eip712.TypedData)
if err != nil {
return nil, fmt.Errorf("failed to sign hash of typed data: %w", err)
}
// crypto.Sign uses the traditional implementation where v is either 0 or 1,
// while Ethereum uses newer implementation where v is either 27 or 28.
if sig[64] < 27 {
sig[64] += 27
}
Expand Down
Loading

0 comments on commit 65a5686

Please sign in to comment.