diff --git a/.github/workflows/auto_merge_prs.yml b/.github/workflows/auto_merge_prs.yml
new file mode 100644
index 0000000..5116a1d
--- /dev/null
+++ b/.github/workflows/auto_merge_prs.yml
@@ -0,0 +1,38 @@
+# auto merge workflow.
+#
+# Auto merge PR if commit msg begins with `chore(release):`,
+# or if it has been raised by Dependabot.
+# Uses https://github.com/ridedott/merge-me-action.
+
+name: Merge Version Change and Dependabot PRs automatically
+
+on: pull_request
+
+jobs:
+ merge:
+ runs-on: ubuntu-20.04
+ steps:
+ - uses: actions/checkout@v2
+ with:
+ fetch-depth: '0'
+
+ - name: get commit message
+ run: |
+ commitmsg=$(git log --format=%s -n 1 ${{ github.event.pull_request.head.sha }})
+ echo "commitmsg=${commitmsg}" >> $GITHUB_ENV
+ - name: show commit message
+ run : echo $commitmsg
+
+ - name: Merge Version change PR
+ if: startsWith( env.commitmsg, 'chore(release):')
+ uses: ridedott/merge-me-action@81667e6ae186ddbe6d3c3186d27d91afa7475e2c
+ with:
+ GITHUB_LOGIN: dirvine
+ GITHUB_TOKEN: ${{ secrets.MERGE_BUMP_BRANCH_TOKEN }}
+ MERGE_METHOD: REBASE
+
+ - name: Dependabot Merge
+ uses: ridedott/merge-me-action@v2
+ with:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ MERGE_METHOD: REBASE
\ No newline at end of file
diff --git a/src/builder.rs b/src/builder.rs
index 669372f..909beb8 100644
--- a/src/builder.rs
+++ b/src/builder.rs
@@ -8,7 +8,7 @@
use crate::{
transaction::{DbcTransaction, Output},
- DbcId, DerivationIndex, DerivedKey, Input, PublicAddress, Spend,
+ DbcId, DerivationIndex, DerivedKey, FeeOutput, Input, PublicAddress, Spend,
};
use crate::{Dbc, DbcCiphers, Error, Hash, Result, SignedSpend, Token};
#[cfg(feature = "serde")]
@@ -24,6 +24,7 @@ pub type InputSrcTx = DbcTransaction;
pub struct TransactionBuilder {
inputs: Vec,
outputs: Vec