Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(types): using options pattern for memo parameter on new tx functions #1443

Merged
merged 1 commit into from
Aug 2, 2024

Conversation

maxipaz
Copy link
Contributor

@maxipaz maxipaz commented Jul 29, 2024

Description

Making memo field optional in the newTx and its callers functions, by using options pattern.

Related issue(s)

@maxipaz maxipaz requested a review from b00f July 29, 2024 22:56
@maxipaz maxipaz self-assigned this Jul 29, 2024
execution/execution_test.go Outdated Show resolved Hide resolved
execution/execution_test.go Outdated Show resolved Hide resolved
store/store_test.go Outdated Show resolved Hide resolved
store/store_test.go Outdated Show resolved Hide resolved
store/store_test.go Outdated Show resolved Hide resolved
txpool/txpool_test.go Outdated Show resolved Hide resolved
@maxipaz maxipaz force-pushed the refactor/new-tx-optional-memo branch 3 times, most recently from e3d4cbf to ea2ecb0 Compare July 30, 2024 21:18
Copy link

codecov bot commented Jul 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 75.50%. Comparing base (3a9a3be) to head (ea2ecb0).
Report is 7 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1443      +/-   ##
==========================================
+ Coverage   75.30%   75.50%   +0.19%     
==========================================
  Files         220      222       +2     
  Lines       11472    11511      +39     
==========================================
+ Hits         8639     8691      +52     
+ Misses       2413     2403      -10     
+ Partials      420      417       -3     

@maxipaz maxipaz force-pushed the refactor/new-tx-optional-memo branch from ea2ecb0 to 804924b Compare July 30, 2024 21:24
@maxipaz maxipaz requested a review from b00f July 30, 2024 22:00
execution/executor/bond_test.go Outdated Show resolved Hide resolved
execution/executor/bond_test.go Outdated Show resolved Hide resolved
execution/executor/bond_test.go Outdated Show resolved Hide resolved
execution/executor/bond_test.go Outdated Show resolved Hide resolved
execution/executor/unbond_test.go Outdated Show resolved Hide resolved
util/testsuite/testsuite.go Outdated Show resolved Hide resolved
util/testsuite/testsuite.go Outdated Show resolved Hide resolved
util/testsuite/testsuite.go Outdated Show resolved Hide resolved
www/grpc/wallet_test.go Outdated Show resolved Hide resolved
www/grpc/wallet_test.go Outdated Show resolved Hide resolved
@b00f
Copy link
Collaborator

b00f commented Jul 31, 2024

I proposed to remove some unnecessary memos from the test. Maybe you can align lines in some tests.

@maxipaz maxipaz force-pushed the refactor/new-tx-optional-memo branch from 804924b to f9714ef Compare July 31, 2024 11:01
@maxipaz maxipaz force-pushed the refactor/new-tx-optional-memo branch from f9714ef to a7047b3 Compare July 31, 2024 11:19
@maxipaz maxipaz requested a review from b00f July 31, 2024 11:29
@b00f b00f marked this pull request as ready for review August 1, 2024 17:03
@b00f b00f merged commit aac7fda into pactus-project:main Aug 2, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Using Option Pattern to Make memo Optional in Creating New Transactions
2 participants