Skip to content

Commit

Permalink
Merge pull request #292 from virtualeconomy/update/pre_settings
Browse files Browse the repository at this point in the history
Update/pre settings
  • Loading branch information
ncying authored Jul 26, 2021
2 parents 0a11609 + 07c8af2 commit 4104966
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@ jobs:
steps:
- name: install scala
run: |
echo "deb https://dl.bintray.com/sbt/debian /" | sudo tee -a /etc/apt/sources.list.d/sbt.list
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 2EE0EA64E40A89B84B2DF73499E82A75642AC823
echo "deb https://repo.scala-sbt.org/scalasbt/debian all main" | sudo tee /etc/apt/sources.list.d/sbt.list
echo "deb https://repo.scala-sbt.org/scalasbt/debian /" | sudo tee /etc/apt/sources.list.d/sbt_old.list
curl -sL "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x2EE0EA64E40A89B84B2DF73499E82A75642AC823" | sudo apt-key add
sudo apt-get update
sudo apt-get install -y sbt
sudo apt-get install sbt
- uses: actions/checkout@v2

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ object CommonValidation {
(c != ContractPermitted.contract &&
c != ContractPermitted.contractWithoutSplit))
Left(GenericError(s"deposit withdraw contracts must not appear before height=${settings.allowDepositWithdrawContractAfterHeight}"))
else Right(tx)
else if (c == ContractLock.contract || c == ContractPaymentChannel.contract || c == ContractNonFungible.contract || c == ContractPermitted.contract || c == ContractPermitted.contractWithoutSplit)
Right(tx)
else Left(GenericError(s"unsupported contracts"))
}

def disallowBeforeActivationHeight[T <: Transaction](settings: FunctionalitySettings, h: Int, tx: T): Either[ValidationError, T] =
Expand Down

0 comments on commit 4104966

Please sign in to comment.